fix(apps/frontend): error data can be undefined (#3513)
This commit is contained in:
parent
5c1f198397
commit
59e18b3104
@ -183,7 +183,7 @@ async function createProject() {
|
|||||||
app.$notify({
|
app.$notify({
|
||||||
group: "main",
|
group: "main",
|
||||||
title: "An error occurred",
|
title: "An error occurred",
|
||||||
text: err.data.description,
|
text: err.data ? err.data.description : err,
|
||||||
type: "error",
|
type: "error",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -430,7 +430,7 @@ async function performAction(notification, actionIndex) {
|
|||||||
app.$notify({
|
app.$notify({
|
||||||
group: "main",
|
group: "main",
|
||||||
title: "An error occurred",
|
title: "An error occurred",
|
||||||
text: err.data.description,
|
text: err.data ? err.data.description : err,
|
||||||
type: "error",
|
type: "error",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -106,7 +106,7 @@ async function createOrganization() {
|
|||||||
addNotification({
|
addNotification({
|
||||||
group: "main",
|
group: "main",
|
||||||
title: "An error occurred",
|
title: "An error occurred",
|
||||||
text: err.data.description,
|
text: err.data ? err.data.description : err,
|
||||||
type: "error",
|
type: "error",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1346,7 +1346,7 @@ async function setProcessing() {
|
|||||||
data.$notify({
|
data.$notify({
|
||||||
group: "main",
|
group: "main",
|
||||||
title: "An error occurred",
|
title: "An error occurred",
|
||||||
text: err.data.description,
|
text: err.data ? err.data.description : err,
|
||||||
type: "error",
|
type: "error",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -1389,7 +1389,7 @@ async function patchProject(resData, quiet = false) {
|
|||||||
data.$notify({
|
data.$notify({
|
||||||
group: "main",
|
group: "main",
|
||||||
title: "An error occurred",
|
title: "An error occurred",
|
||||||
text: err.data.description,
|
text: err.data ? err.data.description : err,
|
||||||
type: "error",
|
type: "error",
|
||||||
});
|
});
|
||||||
window.scrollTo({ top: 0, behavior: "smooth" });
|
window.scrollTo({ top: 0, behavior: "smooth" });
|
||||||
@ -1426,7 +1426,7 @@ async function patchIcon(icon) {
|
|||||||
data.$notify({
|
data.$notify({
|
||||||
group: "main",
|
group: "main",
|
||||||
title: "An error occurred",
|
title: "An error occurred",
|
||||||
text: err.data.description,
|
text: err.data ? err.data.description : err,
|
||||||
type: "error",
|
type: "error",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -1136,7 +1136,7 @@ export default defineNuxtComponent({
|
|||||||
this.$notify({
|
this.$notify({
|
||||||
group: "main",
|
group: "main",
|
||||||
title: "An error occurred",
|
title: "An error occurred",
|
||||||
text: err.data.description,
|
text: err.data ? err.data.description : err,
|
||||||
type: "error",
|
type: "error",
|
||||||
});
|
});
|
||||||
window.scrollTo({ top: 0, behavior: "smooth" });
|
window.scrollTo({ top: 0, behavior: "smooth" });
|
||||||
|
|||||||
@ -697,7 +697,7 @@ async function deleteCollection() {
|
|||||||
addNotification({
|
addNotification({
|
||||||
group: "main",
|
group: "main",
|
||||||
title: formatMessage(commonMessages.errorNotificationTitle),
|
title: formatMessage(commonMessages.errorNotificationTitle),
|
||||||
text: err.data.description,
|
text: err.data ? err.data.description : err,
|
||||||
type: "error",
|
type: "error",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -205,7 +205,7 @@ async function updateVenmo() {
|
|||||||
data.$notify({
|
data.$notify({
|
||||||
group: "main",
|
group: "main",
|
||||||
title: "An error occurred",
|
title: "An error occurred",
|
||||||
text: err.data.description,
|
text: err.data ? err.data.description : err,
|
||||||
type: "error",
|
type: "error",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -158,7 +158,7 @@ async function cancelPayout(id) {
|
|||||||
data.$notify({
|
data.$notify({
|
||||||
group: "main",
|
group: "main",
|
||||||
title: "An error occurred",
|
title: "An error occurred",
|
||||||
text: err.data.description,
|
text: err.data ? err.data.description : err,
|
||||||
type: "error",
|
type: "error",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -369,7 +369,7 @@ async function withdraw() {
|
|||||||
data.$notify({
|
data.$notify({
|
||||||
group: "main",
|
group: "main",
|
||||||
title: "An error occurred",
|
title: "An error occurred",
|
||||||
text: err.data.description,
|
text: err.data ? err.data.description : err,
|
||||||
type: "error",
|
type: "error",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -463,7 +463,7 @@ async function saveEmail() {
|
|||||||
data.$notify({
|
data.$notify({
|
||||||
group: "main",
|
group: "main",
|
||||||
title: "An error occurred",
|
title: "An error occurred",
|
||||||
text: err.data.description,
|
text: err.data ? err.data.description : err,
|
||||||
type: "error",
|
type: "error",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -495,7 +495,7 @@ async function savePassword() {
|
|||||||
data.$notify({
|
data.$notify({
|
||||||
group: "main",
|
group: "main",
|
||||||
title: "An error occurred",
|
title: "An error occurred",
|
||||||
text: err.data.description,
|
text: err.data ? err.data.description : err,
|
||||||
type: "error",
|
type: "error",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -532,7 +532,7 @@ async function showTwoFactorModal() {
|
|||||||
data.$notify({
|
data.$notify({
|
||||||
group: "main",
|
group: "main",
|
||||||
title: "An error occurred",
|
title: "An error occurred",
|
||||||
text: err.data.description,
|
text: err.data ? err.data.description : err,
|
||||||
type: "error",
|
type: "error",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -622,7 +622,7 @@ async function deleteAccount() {
|
|||||||
data.$notify({
|
data.$notify({
|
||||||
group: "main",
|
group: "main",
|
||||||
title: "An error occurred",
|
title: "An error occurred",
|
||||||
text: err.data.description,
|
text: err.data ? err.data.description : err,
|
||||||
type: "error",
|
type: "error",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -652,7 +652,7 @@ async function exportData() {
|
|||||||
data.$notify({
|
data.$notify({
|
||||||
group: "main",
|
group: "main",
|
||||||
title: "An error occurred",
|
title: "An error occurred",
|
||||||
text: err.data.description,
|
text: err.data ? err.data.description : err,
|
||||||
type: "error",
|
type: "error",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -119,7 +119,7 @@ async function revokeSession(id) {
|
|||||||
data.$notify({
|
data.$notify({
|
||||||
group: "main",
|
group: "main",
|
||||||
title: formatMessage(commonMessages.errorNotificationTitle),
|
title: formatMessage(commonMessages.errorNotificationTitle),
|
||||||
text: err.data.description,
|
text: err.data ? err.data.description : err,
|
||||||
type: "error",
|
type: "error",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user