diff --git a/components/admin/SMTP.vue b/components/admin/SMTP.vue index efa05c3b..bd2ac298 100644 --- a/components/admin/SMTP.vue +++ b/components/admin/SMTP.vue @@ -63,7 +63,7 @@ export default { } }, async fetch () { - this.smtp = await this.$axios.$get('/settings/smtp') + this.smtp = await this.$axios.$get('/settings/smtp').catch(_e => ({ auth: {} })) }, computed: mapState(['settings']), watch: { diff --git a/layouts/default.vue b/layouts/default.vue index 250a94a4..6564da18 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -41,7 +41,7 @@ export default { return { collections: [], mdiChevronLeft } }, async fetch () { - this.collections = await this.$axios.$get('collections') + this.collections = await this.$axios.$get('collections').catch(_e => []) }, name: 'Default', components: { Nav, Snackbar, Footer, Confirm }, diff --git a/pages/Login.vue b/pages/Login.vue index 83f45a19..7ddc8ffb 100644 --- a/pages/Login.vue +++ b/pages/Login.vue @@ -51,9 +51,7 @@ export default { valid: false } }, - computed: { - ...mapState(['settings']) - }, + computed: mapState(['settings']), methods: { async forgot () { if (!this.email) {