fix: allow timeline paste and duplicate commands to reassign updated tracks

This commit is contained in:
Maze Winther 2026-03-31 18:47:45 +02:00
parent d23be079cc
commit 154b78c7d1
2 changed files with 2 additions and 2 deletions

View File

@ -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,
});

View File

@ -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(