diff --git a/src/atoms/tableScope/rowActions.ts b/src/atoms/tableScope/rowActions.ts index 37d1f9de..fd90fe3d 100644 --- a/src/atoms/tableScope/rowActions.ts +++ b/src/atoms/tableScope/rowActions.ts @@ -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 },