Handle errors in grid when no validation structure in response

This commit is contained in:
Peter Clement 2023-07-03 11:50:57 +01:00
parent bc47f5b0b2
commit 46244b72ac
1 changed files with 8 additions and 0 deletions

View File

@ -246,6 +246,14 @@ export const deriveStores = context => {
}
} else {
// Some other error - just update the current cell
if (get(focusedCellId)) {
validation.actions.setError(
get(focusedCellId),
error?.message || "Error"
)
} else {
get(notifications).error(error?.message || "An unknown error occurred")
}
validation.actions.setError(get(focusedCellId), error?.message || "Error")
}
}