summaryrefslogtreecommitdiff
path: root/apps/web/src/lib/commands/timeline/element/duplicate-elements.ts
diff options
context:
space:
mode:
authorMaze Winther <mazewinther@gmail.com>2026-03-31 18:47:45 +0200
committerMaze Winther <mazewinther@gmail.com>2026-03-31 18:47:45 +0200
commit154b78c7d1d41fdbff566e486627e52c841a7848 (patch)
tree52d8362846590f55e9a66667d8b81175e077bd50 /apps/web/src/lib/commands/timeline/element/duplicate-elements.ts
parentd23be079cce6108482fc3e85401cccf949087174 (diff)
downloadopencut-154b78c7d1d41fdbff566e486627e52c841a7848.tar.gz
fix: allow timeline paste and duplicate commands to reassign updated tracks
Diffstat (limited to 'apps/web/src/lib/commands/timeline/element/duplicate-elements.ts')
-rw-r--r--apps/web/src/lib/commands/timeline/element/duplicate-elements.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/web/src/lib/commands/timeline/element/duplicate-elements.ts b/apps/web/src/lib/commands/timeline/element/duplicate-elements.ts
index a4f7ca82..90e178d0 100644
--- a/apps/web/src/lib/commands/timeline/element/duplicate-elements.ts
+++ b/apps/web/src/lib/commands/timeline/element/duplicate-elements.ts
@@ -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(