solely use notifications store for error message without rowId

This commit is contained in:
Peter Clement 2023-07-03 13:29:28 +01:00
parent 46244b72ac
commit c504ceca9d
1 changed files with 1 additions and 10 deletions

View File

@ -245,16 +245,7 @@ export const deriveStores = context => {
focusedCellId.set(`${rowId}-${erroredColumns[0]}`)
}
} 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")
get(notifications).error(error?.message || "An unknown error occurred")
}
}