mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
fix bug where a row may not be deleted from the db if it’s in rowsLocal
This commit is contained in:
@@ -213,7 +213,9 @@ export const deleteRowAtom = atom(
|
||||
find(tableRowsLocal, ["_rowy_ref.path", path])
|
||||
);
|
||||
if (isLocalRow) set(tableRowsLocalAtom, { type: "delete", path });
|
||||
else await deleteRowDb(path);
|
||||
|
||||
// Always delete from db in case it exists
|
||||
await deleteRowDb(path);
|
||||
if (auditChange) auditChange("DELETE_ROW", path);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user