diff --git a/apps/frontend/src/components/ui/ModalCreation.vue b/apps/frontend/src/components/ui/ModalCreation.vue index 1de76a95e..bfc5b140f 100644 --- a/apps/frontend/src/components/ui/ModalCreation.vue +++ b/apps/frontend/src/components/ui/ModalCreation.vue @@ -183,7 +183,7 @@ async function createProject() { app.$notify({ group: "main", title: "An error occurred", - text: err.data.description, + text: err.data ? err.data.description : err, type: "error", }); } diff --git a/apps/frontend/src/components/ui/NotificationItem.vue b/apps/frontend/src/components/ui/NotificationItem.vue index 329b85fab..1dabdc7b6 100644 --- a/apps/frontend/src/components/ui/NotificationItem.vue +++ b/apps/frontend/src/components/ui/NotificationItem.vue @@ -430,7 +430,7 @@ async function performAction(notification, actionIndex) { app.$notify({ group: "main", title: "An error occurred", - text: err.data.description, + text: err.data ? err.data.description : err, type: "error", }); } diff --git a/apps/frontend/src/components/ui/OrganizationCreateModal.vue b/apps/frontend/src/components/ui/OrganizationCreateModal.vue index 958c3fcd3..c9e966636 100644 --- a/apps/frontend/src/components/ui/OrganizationCreateModal.vue +++ b/apps/frontend/src/components/ui/OrganizationCreateModal.vue @@ -106,7 +106,7 @@ async function createOrganization() { addNotification({ group: "main", title: "An error occurred", - text: err.data.description, + text: err.data ? err.data.description : err, type: "error", }); } diff --git a/apps/frontend/src/pages/[type]/[id].vue b/apps/frontend/src/pages/[type]/[id].vue index 80f9ff224..f97367cd7 100644 --- a/apps/frontend/src/pages/[type]/[id].vue +++ b/apps/frontend/src/pages/[type]/[id].vue @@ -1346,7 +1346,7 @@ async function setProcessing() { data.$notify({ group: "main", title: "An error occurred", - text: err.data.description, + text: err.data ? err.data.description : err, type: "error", }); } @@ -1389,7 +1389,7 @@ async function patchProject(resData, quiet = false) { data.$notify({ group: "main", title: "An error occurred", - text: err.data.description, + text: err.data ? err.data.description : err, type: "error", }); window.scrollTo({ top: 0, behavior: "smooth" }); @@ -1426,7 +1426,7 @@ async function patchIcon(icon) { data.$notify({ group: "main", title: "An error occurred", - text: err.data.description, + text: err.data ? err.data.description : err, type: "error", }); diff --git a/apps/frontend/src/pages/[type]/[id]/version/[version].vue b/apps/frontend/src/pages/[type]/[id]/version/[version].vue index b758a7fd9..c0d84bcb9 100644 --- a/apps/frontend/src/pages/[type]/[id]/version/[version].vue +++ b/apps/frontend/src/pages/[type]/[id]/version/[version].vue @@ -1136,7 +1136,7 @@ export default defineNuxtComponent({ this.$notify({ group: "main", title: "An error occurred", - text: err.data.description, + text: err.data ? err.data.description : err, type: "error", }); window.scrollTo({ top: 0, behavior: "smooth" }); diff --git a/apps/frontend/src/pages/collection/[id].vue b/apps/frontend/src/pages/collection/[id].vue index c820b3913..f8c792cdc 100644 --- a/apps/frontend/src/pages/collection/[id].vue +++ b/apps/frontend/src/pages/collection/[id].vue @@ -697,7 +697,7 @@ async function deleteCollection() { addNotification({ group: "main", title: formatMessage(commonMessages.errorNotificationTitle), - text: err.data.description, + text: err.data ? err.data.description : err, type: "error", }); } diff --git a/apps/frontend/src/pages/dashboard/revenue/index.vue b/apps/frontend/src/pages/dashboard/revenue/index.vue index 91f56cf1e..bded3c849 100644 --- a/apps/frontend/src/pages/dashboard/revenue/index.vue +++ b/apps/frontend/src/pages/dashboard/revenue/index.vue @@ -205,7 +205,7 @@ async function updateVenmo() { data.$notify({ group: "main", title: "An error occurred", - text: err.data.description, + text: err.data ? err.data.description : err, type: "error", }); } diff --git a/apps/frontend/src/pages/dashboard/revenue/transfers.vue b/apps/frontend/src/pages/dashboard/revenue/transfers.vue index d2fc96c7c..8325a5ee5 100644 --- a/apps/frontend/src/pages/dashboard/revenue/transfers.vue +++ b/apps/frontend/src/pages/dashboard/revenue/transfers.vue @@ -158,7 +158,7 @@ async function cancelPayout(id) { data.$notify({ group: "main", title: "An error occurred", - text: err.data.description, + text: err.data ? err.data.description : err, type: "error", }); } diff --git a/apps/frontend/src/pages/dashboard/revenue/withdraw.vue b/apps/frontend/src/pages/dashboard/revenue/withdraw.vue index 01d7a5fd1..4f5342da2 100644 --- a/apps/frontend/src/pages/dashboard/revenue/withdraw.vue +++ b/apps/frontend/src/pages/dashboard/revenue/withdraw.vue @@ -369,7 +369,7 @@ async function withdraw() { data.$notify({ group: "main", title: "An error occurred", - text: err.data.description, + text: err.data ? err.data.description : err, type: "error", }); } diff --git a/apps/frontend/src/pages/settings/account.vue b/apps/frontend/src/pages/settings/account.vue index f383684dd..a4c535b8c 100644 --- a/apps/frontend/src/pages/settings/account.vue +++ b/apps/frontend/src/pages/settings/account.vue @@ -463,7 +463,7 @@ async function saveEmail() { data.$notify({ group: "main", title: "An error occurred", - text: err.data.description, + text: err.data ? err.data.description : err, type: "error", }); } @@ -495,7 +495,7 @@ async function savePassword() { data.$notify({ group: "main", title: "An error occurred", - text: err.data.description, + text: err.data ? err.data.description : err, type: "error", }); } @@ -532,7 +532,7 @@ async function showTwoFactorModal() { data.$notify({ group: "main", title: "An error occurred", - text: err.data.description, + text: err.data ? err.data.description : err, type: "error", }); } @@ -622,7 +622,7 @@ async function deleteAccount() { data.$notify({ group: "main", title: "An error occurred", - text: err.data.description, + text: err.data ? err.data.description : err, type: "error", }); } @@ -652,7 +652,7 @@ async function exportData() { data.$notify({ group: "main", title: "An error occurred", - text: err.data.description, + text: err.data ? err.data.description : err, type: "error", }); } diff --git a/apps/frontend/src/pages/settings/sessions.vue b/apps/frontend/src/pages/settings/sessions.vue index 5dc0da0e3..804256f6c 100644 --- a/apps/frontend/src/pages/settings/sessions.vue +++ b/apps/frontend/src/pages/settings/sessions.vue @@ -119,7 +119,7 @@ async function revokeSession(id) { data.$notify({ group: "main", title: formatMessage(commonMessages.errorNotificationTitle), - text: err.data.description, + text: err.data ? err.data.description : err, type: "error", }); }