1
0
Fork 0
mirror of synced 2024-07-01 20:41:03 +12:00

fix error not showing as new row has no focusedCellID

This commit is contained in:
Peter Clement 2023-06-28 09:11:50 +01:00
parent cf0300973a
commit c35e403c5e

View file

@ -206,7 +206,14 @@ export const deriveStores = context => {
focusedCellId.set(`${rowId}-${keys[0]}`)
} else {
// Some other error - just update the current cell
validation.actions.setError(get(focusedCellId), error?.message || "Error")
if (get(focusedCellId)) {
validation.actions.setError(
get(focusedCellId),
error?.message || "Error"
)
} else {
notifications.error(error?.message || "Error")
}
}
}