fix: not login issue

This commit is contained in:
Mohamed Yussuf
2020-06-08 01:32:14 +08:00
parent 10c568098c
commit 0bf2ba5416
2 changed files with 4 additions and 2 deletions

View File

@@ -134,7 +134,8 @@ export default {
}, },
computed: { computed: {
collections() { collections() {
return fb.currentCollections; return fb.currentUser !== null
? fb.currentCollections : this.$store.state.postwoman.collections
}, },
}, },
async mounted() { async mounted() {

View File

@@ -82,7 +82,8 @@ export default {
}, },
computed: { computed: {
environments() { environments() {
return fb.currentEnvironments; return fb.currentUser !== null
? fb.currentEnvironments : this.$store.state.postwoman.environments
}, },
}, },
async mounted() { async mounted() {