Skip to content

Commit

Permalink
SUPPORT-2078: Update Integrations Components for FusionCharts [Contri…
Browse files Browse the repository at this point in the history
…butor Pull Requests]

Contributer PR #65 changes, do selective lodash cloneDeep import
  • Loading branch information
root authored and root committed Oct 12, 2020
1 parent d81560a commit 13006cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/vue-fusioncharts-component.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { optionsMap, props } = require('./config.js');
const _ = require('lodash');
const cloneDeep = require('lodash/cloneDeep');
import { addDep, checkIfDataTableExists, cloneDataSource } from './utils';

export default (FC, ...options) => {
Expand Down Expand Up @@ -149,7 +149,7 @@ export default (FC, ...options) => {
if (newVal !== prevVal) {
let clonedDataSource;
if (this.datasource.series) {
clonedDataSource = _.cloneDeep(this.datasource);
clonedDataSource = cloneDeep(this.datasource);
} else clonedDataSource = this.datasource;
this.chartObj.setChartData(
clonedDataSource,
Expand All @@ -164,7 +164,7 @@ export default (FC, ...options) => {
if (newVal !== prevVal) {
let clonedDataSource;
if (this.dataSource.series) {
clonedDataSource = _.cloneDeep(this.dataSource);
clonedDataSource = cloneDeep(this.dataSource);
} else clonedDataSource = this.dataSource;
this.chartObj.setChartData(
clonedDataSource,
Expand Down Expand Up @@ -196,7 +196,7 @@ export default (FC, ...options) => {
if (strPrevClonedDataSource !== strCurrClonedDataSource) {
this.prevDataSource = cloneDataSource(ds, 'diff');
if (ds.series) {
ds = _.cloneDeep(ds);
ds = cloneDeep(ds);
}
this.chartObj.setChartData(ds, this.dataFormat || this.dataformat);
}
Expand Down

0 comments on commit 13006cf

Please sign in to comment.