From 874b674803f401b96186cda09e4022d2db8e4c95 Mon Sep 17 00:00:00 2001 From: Jakub Juszczak Date: Wed, 22 Feb 2017 15:39:42 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20reactiveMixins=20issue=20#?= =?UTF-8?q?42?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mixins/reactiveData.js | 2 +- src/mixins/reactiveProp.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mixins/reactiveData.js b/src/mixins/reactiveData.js index 540e63cb..7d8b1469 100644 --- a/src/mixins/reactiveData.js +++ b/src/mixins/reactiveData.js @@ -26,7 +26,7 @@ module.exports = { // Check if Labels are equal and if dataset length is equal if (newLabels === oldLabels && oldData.datasets.length === newData.datasets.length) { newData.datasets.forEach((dataset, i) => { - chart.data.datasets[i].data = dataset.data + chart.data.datasets[i] = dataset }) chart.data.labels = newData.labels diff --git a/src/mixins/reactiveProp.js b/src/mixins/reactiveProp.js index 1d0882f4..a4f520ed 100644 --- a/src/mixins/reactiveProp.js +++ b/src/mixins/reactiveProp.js @@ -27,7 +27,7 @@ module.exports = { // Check if Labels are equal and if dataset length is equal if (newLabels === oldLabels && oldData.datasets.length === newData.datasets.length) { newData.datasets.forEach((dataset, i) => { - chart.data.datasets[i].data = dataset.data + chart.data.datasets[i] = dataset }) chart.data.labels = newData.labels