From ec435778738c3036fdd9be283fad4254cacc2498 Mon Sep 17 00:00:00 2001 From: Gabriel Massadas Date: Sun, 25 Feb 2024 22:17:21 +0000 Subject: [PATCH] Fix emails not loading on readonly --- packages/dashboard-v2/src/pages/email/EmailFolderPage.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/dashboard-v2/src/pages/email/EmailFolderPage.vue b/packages/dashboard-v2/src/pages/email/EmailFolderPage.vue index d634b2d..121c0e0 100644 --- a/packages/dashboard-v2/src/pages/email/EmailFolderPage.vue +++ b/packages/dashboard-v2/src/pages/email/EmailFolderPage.vue @@ -218,7 +218,9 @@ export default defineComponent({ const blob = new Blob([JSON.stringify(updatedIndex)], { type: "application/json" }); - await apiHandler.uploadObjects(blob, indexKey, this.selectedBucket); + try { + await apiHandler.uploadObjects(blob, indexKey, this.selectedBucket); + } catch (e) {} return updatedIndex; },