mirror of
https://github.com/docmost/docmost.git
synced 2026-07-14 00:46:45 +10:00
feat(bases): allow updateRow to set position atomically
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user