We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36a1211 commit 3a304ecCopy full SHA for 3a304ec
packages/compass-data-modeling/src/store/diagram.ts
@@ -264,16 +264,11 @@ export function moveCollection(
264
ns: string,
265
newPosition: [number, number]
266
): DataModelingThunkAction<void, ApplyEditAction | ApplyEditFailedAction> {
267
- return (dispatch) => {
268
- const edit: Omit<
269
- Extract<Edit, { type: 'MoveCollection' }>,
270
- 'id' | 'timestamp'
271
- > = {
+ return applyEdit({
272
type: 'MoveCollection',
273
ns,
274
newPosition,
275
- };
276
- dispatch(applyEdit(edit));
+ })
277
};
278
}
279
0 commit comments