diff options
| author | Maze Winther <mazewinther@gmail.com> | 2026-04-03 03:13:49 +0200 |
|---|---|---|
| committer | Maze Winther <mazewinther@gmail.com> | 2026-04-03 03:13:49 +0200 |
| commit | 1a8a1e889ab313e88fb0bbe6483c001ac751e2d8 (patch) | |
| tree | b275216880f2592c97bbbd3eb1eab8074cb6fd93 /apps/web/src/lib/commands/timeline/element/effects/update-effect-params.ts | |
| parent | 3516bd69f4aaf5be401d3e03cb45d2e5bbc28638 (diff) | |
| download | opencut-1a8a1e889ab313e88fb0bbe6483c001ac751e2d8.tar.gz | |
refactor: update command execute methods to return CommandResult | undefined
Diffstat (limited to 'apps/web/src/lib/commands/timeline/element/effects/update-effect-params.ts')
| -rw-r--r-- | apps/web/src/lib/commands/timeline/element/effects/update-effect-params.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/web/src/lib/commands/timeline/element/effects/update-effect-params.ts b/apps/web/src/lib/commands/timeline/element/effects/update-effect-params.ts index c3443c22..058706ec 100644 --- a/apps/web/src/lib/commands/timeline/element/effects/update-effect-params.ts +++ b/apps/web/src/lib/commands/timeline/element/effects/update-effect-params.ts @@ -1,4 +1,4 @@ -import { Command } from "@/lib/commands/base-command"; +import { Command, type CommandResult } from "@/lib/commands/base-command"; import { EditorCore } from "@/core"; import { isVisualElement, updateElementInTracks } from "@/lib/timeline"; import type { ParamValues } from "@/lib/params"; @@ -56,7 +56,7 @@ export class UpdateClipEffectParamsCommand extends Command { this.params = params; } - execute(): void { + execute(): CommandResult | undefined { const editor = EditorCore.getInstance(); this.savedState = editor.timeline.getTracks(); @@ -75,6 +75,7 @@ export class UpdateClipEffectParamsCommand extends Command { }); editor.timeline.updateTracks(updatedTracks); + return undefined; } undo(): void { |
