Skip to content

Commit

Permalink
fix: use computed collection length
Browse files Browse the repository at this point in the history
  • Loading branch information
kobenguyent committed Sep 25, 2024
1 parent 1382975 commit 2e51c91
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/ui/src/components/NavBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,12 @@ export default {
contextMenuY: null,
element: null,
},
collectionLength: 0
}
},
beforeMount() {
this.collectionLength = this.$store.state.collection.length
},
computed: {
collectionLength() {
return this.$store.state.collection.length
},
activeWorkspace() {
return this.$store.state.activeWorkspace
},
Expand Down

0 comments on commit 2e51c91

Please sign in to comment.