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]}`)
|
focusedCellId.set(`${rowId}-${erroredColumns[0]}`)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Some other error - just update the current cell
|
get(notifications).error(error?.message || "An unknown error occurred")
|
||||||
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")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue