fix: allow timeline paste and duplicate commands to reassign updated tracks
This commit is contained in:
parent
d23be079cc
commit
154b78c7d1
|
|
@ -38,7 +38,7 @@ export class PasteCommand extends Command {
|
|||
...this.clipboardItems.map((item) => item.element.startTime),
|
||||
);
|
||||
|
||||
const updatedTracks = [...this.savedState];
|
||||
let updatedTracks = [...this.savedState];
|
||||
const itemsByTrackId = groupClipboardItemsByTrackId({
|
||||
clipboardItems: this.clipboardItems,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ export class DuplicateElementsCommand extends Command {
|
|||
this.previousSelection = editor.selection.getSelectedElements();
|
||||
this.duplicatedElements = [];
|
||||
|
||||
const updatedTracks = [...this.savedState];
|
||||
let updatedTracks = [...this.savedState];
|
||||
|
||||
for (const track of this.savedState) {
|
||||
const elementsToDuplicate = this.elements.filter(
|
||||
|
|
|
|||
Loading…
Reference in New Issue