You've already forked AstralRinth
forked from didirus/AstralRinth
fix(apps/frontend): error data can be undefined (#3513)
This commit is contained in:
@@ -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",
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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",
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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",
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user