Commit 18d6836a authored by Nathan Friend's avatar Nathan Friend

Merge branch 'jivanvl-replace-underscore-lodash-protected' into 'master'

Replace underscore/lodash in ee/protected_*

Closes #210274

See merge request gitlab-org/gitlab!27939
parents ea07481b 0bc7551f
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