Skip to content

Commit

Permalink
fix: use another state to get Collection length
Browse files Browse the repository at this point in the history
  • Loading branch information
kobenguyent authored Sep 25, 2024
1 parent 2e1884c commit 1382975
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ui/src/components/NavBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ export default {
collectionLength: 0
}
},
async beforeMount() {
this.collectionLength = (await getCollectionForWorkspace(this.$store.state.activeWorkspace._id)).collection.length
beforeMount() {
this.collectionLength = this.$store.state.collection.length
},
computed: {
activeWorkspace() {
Expand Down

0 comments on commit 1382975

Please sign in to comment.