summaryrefslogtreecommitdiff
path: root/apps/web/src/lib/commands/timeline/clipboard
diff options
context:
space:
mode:
authorMaze Winther <mazewinther@gmail.com>2026-04-03 03:13:49 +0200
committerMaze Winther <mazewinther@gmail.com>2026-04-03 03:13:49 +0200
commit1a8a1e889ab313e88fb0bbe6483c001ac751e2d8 (patch)
treeb275216880f2592c97bbbd3eb1eab8074cb6fd93 /apps/web/src/lib/commands/timeline/clipboard
parent3516bd69f4aaf5be401d3e03cb45d2e5bbc28638 (diff)
downloadopencut-1a8a1e889ab313e88fb0bbe6483c001ac751e2d8.tar.gz
refactor: update command execute methods to return CommandResult | undefined
Diffstat (limited to 'apps/web/src/lib/commands/timeline/clipboard')
-rw-r--r--apps/web/src/lib/commands/timeline/clipboard/paste.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/web/src/lib/commands/timeline/clipboard/paste.ts b/apps/web/src/lib/commands/timeline/clipboard/paste.ts
index 59e1af1c..9fa4b83b 100644
--- a/apps/web/src/lib/commands/timeline/clipboard/paste.ts
+++ b/apps/web/src/lib/commands/timeline/clipboard/paste.ts
@@ -33,7 +33,7 @@ export class PasteCommand extends Command {
}
execute(): CommandResult | undefined {
- if (this.clipboardItems.length === 0) return;
+ if (this.clipboardItems.length === 0) return undefined;
const editor = EditorCore.getInstance();
this.savedState = editor.timeline.getTracks();
@@ -123,6 +123,7 @@ export class PasteCommand extends Command {
if (this.pastedElements.length > 0) {
return { select: this.pastedElements };
}
+ return undefined;
}
undo(): void {