solely use notifications store for error message without rowId
This commit is contained in:
parent
46244b72ac
commit
c504ceca9d
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue