1
0
Fork 0
mirror of synced 2024-09-30 17:18:14 +13:00

Merge pull request #11103 from Budibase/fix/grid-surface-sql-errors

Handle errors in grid when adding a new row
This commit is contained in:
Peter Clement 2023-07-04 09:49:27 +01:00 committed by GitHub
commit 179f9a5334

View file

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