fix: throwing error when settings key being empty - fixed #1409

This commit is contained in:
Liyas Thomas
2021-01-04 06:25:02 +05:30
parent eae071f9b8
commit 82de03101b
17 changed files with 27 additions and 20 deletions

View File

@@ -87,7 +87,14 @@
/>
</li>
</ul>
<ul v-if="folder.folders && folder.folders.length === 0 && folder.requests && folder.requests.length === 0">
<ul
v-if="
folder.folders &&
folder.folders.length === 0 &&
folder.requests &&
folder.requests.length === 0
"
>
<li class="flex ml-8 border-l border-brdColor">
<p class="info"><i class="material-icons">not_interested</i> {{ $t("folder_empty") }}</p>
</li>
@@ -124,7 +131,7 @@ export default {
},
methods: {
syncCollections() {
if (fb.currentUser !== null) {
if (fb.currentUser !== null && fb.currentSettings[0]) {
if (fb.currentSettings[0].value) {
fb.writeCollections(JSON.parse(JSON.stringify(this.$store.state.postwoman.collections)))
}