1
0
Fork 0
mirror of synced 2024-09-30 17:18:14 +13:00

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

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")
}
}