From 0bf2ba541602b78aa92705d5c51a896245a5f29a Mon Sep 17 00:00:00 2001 From: Mohamed Yussuf Date: Mon, 8 Jun 2020 01:32:14 +0800 Subject: [PATCH] fix: not login issue --- components/collections/index.vue | 3 ++- components/environments/index.vue | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/components/collections/index.vue b/components/collections/index.vue index 890510b50..77db8ad86 100644 --- a/components/collections/index.vue +++ b/components/collections/index.vue @@ -134,7 +134,8 @@ export default { }, computed: { collections() { - return fb.currentCollections; + return fb.currentUser !== null + ? fb.currentCollections : this.$store.state.postwoman.collections }, }, async mounted() { diff --git a/components/environments/index.vue b/components/environments/index.vue index 12e39397a..e3f3af215 100644 --- a/components/environments/index.vue +++ b/components/environments/index.vue @@ -82,7 +82,8 @@ export default { }, computed: { environments() { - return fb.currentEnvironments; + return fb.currentUser !== null + ? fb.currentEnvironments : this.$store.state.postwoman.environments }, }, async mounted() {