Skip to content

Commit

Permalink
Merge pull request #76 from fusioncharts/feature/SUPPORT-2078-do-sele…
Browse files Browse the repository at this point in the history
…ctive-lodash-cloneDeep-import

SUPPORT-2078: Update Integrations Components for FusionCharts [Contributor Pull Requests]
  • Loading branch information
Pallab-accolite authored Oct 21, 2020
2 parents d81560a + 13006cf commit 683641c
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 683641c

Please sign in to comment.