Skip to content

Commit

Permalink
check clusters length before render
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmurphy committed Jun 22, 2024
1 parent a1b6e8d commit 624be5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/cluster.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default buildComponent({
}
},
updated() {
if (this.$clusterObject) {
if (this.$clusterObject && this.$clusterObject.clusters.length > 0) {
this.$clusterObject.render()
}
},
Expand Down

0 comments on commit 624be5e

Please sign in to comment.