mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
fix out of order & missing field rows being added twice to tableRowsLocalAtom
This commit is contained in:
@@ -129,9 +129,9 @@ export const addRowAtom = atom(
|
||||
});
|
||||
}
|
||||
|
||||
// Also add to rowsLocal if any required fields are missing
|
||||
// Also add to rowsLocal if any required fields are missing
|
||||
// (not out of order since those cases are handled above)
|
||||
if (missingRequiredFields.length > 0) {
|
||||
else if (missingRequiredFields.length > 0) {
|
||||
set(tableRowsLocalAtom, {
|
||||
type: "add",
|
||||
row: { ...rowValues, _rowy_outOfOrder: false },
|
||||
|
||||
Reference in New Issue
Block a user