We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d1a12c commit 41afa08Copy full SHA for 41afa08
src/Vue2LeafletHeightGraph.vue
@@ -47,6 +47,11 @@
47
this.updateGraph()
48
})
49
},
50
+ beforeDestroy() {
51
+ if(this.hg) {
52
+ this.hg.remove()
53
+ }
54
+ },
55
methods: {
56
updateGraph() {
57
if(this.hg) {
@@ -61,7 +66,11 @@
61
66
62
67
watch: {
63
68
data: function () {
64
- this.updateGraph();
69
+ if(!this.data && this.hg) {
70
71
+ } else {
72
+ this.updateGraph();
73
65
74
75
}
76
0 commit comments