Commit c8f687d3 authored by lauraMon's avatar lauraMon

Replaces underscore with lodash

parent 05d3494b
import _ from 'underscore';
import { isNumber } from 'lodash';
export default {
computed: {
validIssueWeight() {
if (this.issue && _.isNumber(this.issue.weight)) {
if (this.issue && isNumber(this.issue.weight)) {
return this.issue.weight >= 0;
}
......
/* eslint-disable class-methods-use-this */
import _ from 'underscore';
import { sortBy } from 'lodash';
import Cookies from 'js-cookie';
import { __, sprintf } from '~/locale';
import sidebarEventHub from '~/sidebar/event_hub';
......@@ -156,7 +156,7 @@ class BoardsStoreEE {
position: 0,
});
this.store.state.lists = _.sortBy(this.store.state.lists, 'position');
this.store.state.lists = sortBy(this.store.state.lists, 'position');
}
removePromotion() {
......
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