feat(bases): allow updateRow to set position atomically

This commit is contained in:
Philipinho
2026-05-24 12:31:36 +01:00
parent a793e65560
commit 9cec9b64c6
5 changed files with 21 additions and 0 deletions
@@ -150,6 +150,9 @@ export function useUpdateRowMutation() {
? {
...row,
cells: { ...row.cells, ...variables.cells },
...(variables.position !== undefined && {
position: variables.position,
}),
}
: row,
),
@@ -272,6 +272,7 @@ export type UpdateRowInput = {
rowId: string;
pageId: string;
cells: Record<string, unknown>;
position?: string;
requestId?: string;
};