Skip to content

Commit

Permalink
Merge pull request #43 from apertureless/fix/42
Browse files Browse the repository at this point in the history
πŸ› Fix reactiveMixins issue #42
  • Loading branch information
apertureless authored Feb 22, 2017
2 parents 9a4c18d + 874b674 commit c9af2f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mixins/reactiveData.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/mixins/reactiveProp.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c9af2f9

Please sign in to comment.