fix: save location picker indicator

This commit is contained in:
Liyas Thomas
2021-05-15 05:45:05 +00:00
committed by GitHub
parent 1b9b2ac4c9
commit 8e3ecb4c25
9 changed files with 27 additions and 33 deletions

View File

@@ -297,14 +297,16 @@ export default Vue.extend({
},
syncCollections(): void {
if (fb.currentUser !== null && this.SYNC_COLLECTIONS) {
fb.writeCollections(
JSON.parse(JSON.stringify(this.$store.state.postwoman.collections)),
"collections"
)
fb.writeCollections(
JSON.parse(JSON.stringify(this.$store.state.postwoman.collectionsGraphql)),
"collectionsGraphql"
)
if (this.$store.state.postwoman.collections)
fb.writeCollections(
JSON.parse(JSON.stringify(this.$store.state.postwoman.collections)),
"collections"
)
if (this.$store.state.postwoman.collectionsGraphql)
fb.writeCollections(
JSON.parse(JSON.stringify(this.$store.state.postwoman.collectionsGraphql)),
"collectionsGraphql"
)
}
},
syncEnvironments(): void {