Commit 0b8a2aa7 authored by Kushal Pandya's avatar Kushal Pandya

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

Replace underscore with lodash for ./app/assets/javascripts/contributors

Closes #196638

See merge request gitlab-org/gitlab!25027
parents e193b928 a1660302
<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