Commit 122bbf21 authored by sstern's avatar sstern

Replace underscore with lodash in ./sidebar

parent 89431973
<script>
import $ from 'jquery';
import _ from 'underscore';
import { intersection } from 'lodash';
import '~/smart_interval';
......@@ -38,7 +38,7 @@ export default {
} else {
changedCommands = [];
}
if (changedCommands && _.intersection(subscribedCommands, changedCommands).length) {
if (changedCommands && intersection(subscribedCommands, changedCommands).length) {
this.mediator.fetch();
}
},
......
import $ from 'jquery';
import '~/gl_dropdown';
import _ from 'underscore';
import { escape as esc } from 'lodash';
import { __ } from '~/locale';
function isValidProjectId(id) {
......@@ -49,7 +49,7 @@ class SidebarMoveIssue {
renderRow: project => `
<li>
<a href="#" class="js-move-issue-dropdown-item">
${_.escape(project.name_with_namespace)}
${esc(project.name_with_namespace)}
</a>
</li>
`,
......
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