Skip to content

Commit c9af2f9

Browse files
authored
Merge pull request #43 from apertureless/fix/42
πŸ› Fix reactiveMixins issue #42
2 parents 9a4c18d + 874b674 commit c9af2f9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

β€Žsrc/mixins/reactiveData.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module.exports = {
2626
// Check if Labels are equal and if dataset length is equal
2727
if (newLabels === oldLabels && oldData.datasets.length === newData.datasets.length) {
2828
newData.datasets.forEach((dataset, i) => {
29-
chart.data.datasets[i].data = dataset.data
29+
chart.data.datasets[i] = dataset
3030
})
3131

3232
chart.data.labels = newData.labels

β€Žsrc/mixins/reactiveProp.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module.exports = {
2727
// Check if Labels are equal and if dataset length is equal
2828
if (newLabels === oldLabels && oldData.datasets.length === newData.datasets.length) {
2929
newData.datasets.forEach((dataset, i) => {
30-
chart.data.datasets[i].data = dataset.data
30+
chart.data.datasets[i] = dataset
3131
})
3232

3333
chart.data.labels = newData.labels

0 commit comments

Comments
Β (0)