mirror of
				https://github.com/KevinMidboe/vue-chartjs.git
				synced 2025-10-29 18:00:20 +00:00 
			
		
		
		
	Merge pull request #43 from apertureless/fix/42
🐛 Fix reactiveMixins issue #42
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user