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 b6c8319 commit 128437bCopy full SHA for 128437b
packages/compass-data-modeling/src/store/diagram.ts
@@ -264,12 +264,15 @@ export function moveCollection(
264
ns: string,
265
newPosition: [number, number]
266
): DataModelingThunkAction<void, ApplyEditAction | ApplyEditFailedAction> {
267
- return applyEdit({
268
- type: 'MoveCollection',
269
- ns,
270
- newPosition,
271
- })
+ const edit: Omit<
+ Extract<Edit, { type: 'MoveCollection' }>,
+ 'id' | 'timestamp'
+ > = {
+ type: 'MoveCollection',
272
+ ns,
273
+ newPosition,
274
};
275
+ return applyEdit(edit);
276
}
277
278
export function applyEdit(
0 commit comments