Merge pull request #1578 from colinbes/patch-1
Update Chart.vue to trigger on any change to object datapull/1280/head^2
commit
b529fdc272
|
@ -32,9 +32,16 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
data() {
|
/*
|
||||||
|
* Use deep watch to enable triggering watch for changes within structure
|
||||||
|
* otherwise the entire data object needs to be replaced to trigger watch
|
||||||
|
*/
|
||||||
|
data: {
|
||||||
|
handler() {
|
||||||
this.reinit();
|
this.reinit();
|
||||||
},
|
},
|
||||||
|
deep: true
|
||||||
|
},
|
||||||
type() {
|
type() {
|
||||||
this.reinit();
|
this.reinit();
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue