summaryrefslogtreecommitdiff
path: root/apps/web/src/lib/commands/timeline/element/toggle-elements-visibility.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/src/lib/commands/timeline/element/toggle-elements-visibility.ts')
-rw-r--r--apps/web/src/lib/commands/timeline/element/toggle-elements-visibility.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/web/src/lib/commands/timeline/element/toggle-elements-visibility.ts b/apps/web/src/lib/commands/timeline/element/toggle-elements-visibility.ts
index 690f61aa..271b0a00 100644
--- a/apps/web/src/lib/commands/timeline/element/toggle-elements-visibility.ts
+++ b/apps/web/src/lib/commands/timeline/element/toggle-elements-visibility.ts
@@ -1,4 +1,4 @@
-import { Command } from "@/lib/commands/base-command";
+import { Command, type CommandResult } from "@/lib/commands/base-command";
import type { TimelineTrack } from "@/lib/timeline";
import { canElementBeHidden } from "@/lib/timeline/element-utils";
import { EditorCore } from "@/core";
@@ -10,7 +10,7 @@ export class ToggleElementsVisibilityCommand extends Command {
super();
}
- execute(): void {
+ execute(): CommandResult | undefined {
const editor = EditorCore.getInstance();
this.savedState = editor.timeline.getTracks();
@@ -36,6 +36,7 @@ export class ToggleElementsVisibilityCommand extends Command {
});
editor.timeline.updateTracks(updatedTracks);
+ return undefined;
}
undo(): void {