From 1382975f64845b2c2d61a83120d03dabbf35155f Mon Sep 17 00:00:00 2001 From: kobenguyent <7845001+kobenguyent@users.noreply.github.com> Date: Wed, 25 Sep 2024 05:35:05 +0200 Subject: [PATCH] fix: use another state to get Collection length --- packages/ui/src/components/NavBar.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ui/src/components/NavBar.vue b/packages/ui/src/components/NavBar.vue index 9989d46c..aa96243f 100644 --- a/packages/ui/src/components/NavBar.vue +++ b/packages/ui/src/components/NavBar.vue @@ -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() {