Commit 0bc7551f authored by Jose Vargas's avatar Jose Vargas

Replace underscore/lodash in ee/protected_*

This replaces underscore for lodash inside the
EE folder for:
* protected_tags
* protected_branches
* protected_environments
parent f1dd55e8
import _ from 'underscore';
import { find } from 'lodash';
import AccessDropdown from 'ee/projects/settings/access_dropdown';
import axios from '~/lib/utils/axios_utils';
import Flash from '~/flash';
......@@ -124,7 +124,7 @@ export default class ProtectedBranchEdit {
// Do this only for users for now
// get the current data for selected items
const selectedItems = this[dropdownName].getSelectedItems();
const currentSelectedItem = _.find(selectedItems, {
const currentSelectedItem = find(selectedItems, {
user_id: currentItem.user_id,
});
......
import $ from 'jquery';
import _ from 'underscore';
import { find } from 'lodash';
import AccessDropdown from 'ee/projects/settings/access_dropdown';
import axios from '~/lib/utils/axios_utils';
import Flash from '~/flash';
......@@ -80,7 +80,7 @@ export default class ProtectedEnvironmentEdit {
// Do this only for users for now
// get the current data for selected items
const selectedItems = this[dropdownName].getSelectedItems();
const currentSelectedItem = _.find(selectedItems, {
const currentSelectedItem = find(selectedItems, {
user_id: currentItem.user_id,
});
......
import $ from 'jquery';
import _ from 'underscore';
import { find } from 'lodash';
import AccessDropdown from 'ee/projects/settings/access_dropdown';
import axios from '~/lib/utils/axios_utils';
import createFlash from '~/flash';
......@@ -78,7 +78,7 @@ export default class ProtectedTagEdit {
// Do this only for users for now
// get the current data for selected items
const selectedItems = this[dropdownName].getSelectedItems();
const currentSelectedItem = _.find(selectedItems, {
const currentSelectedItem = find(selectedItems, {
user_id: currentItem.user_id,
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment