Commit a1660302 authored by Jose Vargas's avatar Jose Vargas

Migrate underscore in the contributors folder

parent e7f9dff2
<script> <script>
import _ from 'underscore'; import { debounce, uniq } from 'lodash';
import { mapActions, mapState, mapGetters } from 'vuex'; import { mapActions, mapState, mapGetters } from 'vuex';
import { GlLoadingIcon } from '@gitlab/ui'; import { GlLoadingIcon } from '@gitlab/ui';
import { GlAreaChart } from '@gitlab/ui/dist/charts'; import { GlAreaChart } from '@gitlab/ui/dist/charts';
...@@ -120,7 +120,7 @@ export default { ...@@ -120,7 +120,7 @@ export default {
return this.xAxisRange[this.xAxisRange.length - 1]; return this.xAxisRange[this.xAxisRange.length - 1];
}, },
charts() { charts() {
return _.uniq(this.individualCharts); return uniq(this.individualCharts);
}, },
}, },
mounted() { mounted() {
...@@ -171,7 +171,7 @@ export default { ...@@ -171,7 +171,7 @@ export default {
}); });
}) })
.catch(() => {}); .catch(() => {});
this.masterChart.on('datazoom', _.debounce(this.setIndividualChartsZoom, 200)); this.masterChart.on('datazoom', debounce(this.setIndividualChartsZoom, 200));
}, },
onIndividualChartCreated(chart) { onIndividualChartCreated(chart) {
this.individualCharts.push(chart); this.individualCharts.push(chart);
......
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