Skip to content

Commit 128437b

Browse files
committed
please TS
1 parent b6c8319 commit 128437b

File tree

1 file changed

+8
-5
lines changed
  • packages/compass-data-modeling/src/store

1 file changed

+8
-5
lines changed

packages/compass-data-modeling/src/store/diagram.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -264,12 +264,15 @@ export function moveCollection(
264264
ns: string,
265265
newPosition: [number, number]
266266
): DataModelingThunkAction<void, ApplyEditAction | ApplyEditFailedAction> {
267-
return applyEdit({
268-
type: 'MoveCollection',
269-
ns,
270-
newPosition,
271-
})
267+
const edit: Omit<
268+
Extract<Edit, { type: 'MoveCollection' }>,
269+
'id' | 'timestamp'
270+
> = {
271+
type: 'MoveCollection',
272+
ns,
273+
newPosition,
272274
};
275+
return applyEdit(edit);
273276
}
274277

275278
export function applyEdit(

0 commit comments

Comments
 (0)