fix error not showing as new row has no focusedCellID
This commit is contained in:
parent
cf0300973a
commit
c35e403c5e
|
@ -206,7 +206,14 @@ export const deriveStores = context => {
|
||||||
focusedCellId.set(`${rowId}-${keys[0]}`)
|
focusedCellId.set(`${rowId}-${keys[0]}`)
|
||||||
} else {
|
} else {
|
||||||
// Some other error - just update the current cell
|
// 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")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue