summaryrefslogtreecommitdiff
path: root/apps/web/src/lib/commands/timeline/element/update-element.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/src/lib/commands/timeline/element/update-element.ts')
-rw-r--r--apps/web/src/lib/commands/timeline/element/update-element.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/web/src/lib/commands/timeline/element/update-element.ts b/apps/web/src/lib/commands/timeline/element/update-element.ts
index e6b0706f..643f8e4b 100644
--- a/apps/web/src/lib/commands/timeline/element/update-element.ts
+++ b/apps/web/src/lib/commands/timeline/element/update-element.ts
@@ -32,7 +32,7 @@ export class UpdateElementCommand extends Command {
tracks: this.savedState,
trackId: this.trackId,
elementId: this.elementId,
- update: (element) => ({ ...element, ...this.updates }),
+ update: (element) => ({ ...element, ...this.updates }) as TimelineElement,
});
editor.timeline.updateTracks(updatedTracks);