Skip to content

Commit 3a304ec

Browse files
Update packages/compass-data-modeling/src/store/diagram.ts
Co-authored-by: Sergey Petushkov <[email protected]>
1 parent 36a1211 commit 3a304ec

File tree

1 file changed

+2
-7
lines changed
  • packages/compass-data-modeling/src/store

1 file changed

+2
-7
lines changed

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -264,16 +264,11 @@ export function moveCollection(
264264
ns: string,
265265
newPosition: [number, number]
266266
): DataModelingThunkAction<void, ApplyEditAction | ApplyEditFailedAction> {
267-
return (dispatch) => {
268-
const edit: Omit<
269-
Extract<Edit, { type: 'MoveCollection' }>,
270-
'id' | 'timestamp'
271-
> = {
267+
return applyEdit({
272268
type: 'MoveCollection',
273269
ns,
274270
newPosition,
275-
};
276-
dispatch(applyEdit(edit));
271+
})
277272
};
278273
}
279274

0 commit comments

Comments
 (0)