summaryrefslogtreecommitdiff
path: root/apps/web/src/lib/commands/timeline/element/keyframes/remove-keyframe.ts
diff options
context:
space:
mode:
authorMaze Winther <mazewinther@gmail.com>2026-04-06 12:59:07 +0200
committerMaze Winther <mazewinther@gmail.com>2026-04-06 12:59:07 +0200
commitc411edb7c160c55e94fddf62fd60fa1e166351c0 (patch)
tree39495bfc8120590c93943a396cce2b477d3faa6c /apps/web/src/lib/commands/timeline/element/keyframes/remove-keyframe.ts
parent2776adaae1512bf925c5bb4564b311b37f46202d (diff)
downloadopencut-c411edb7c160c55e94fddf62fd60fa1e166351c0.tar.gz
fix: clean up
Diffstat (limited to 'apps/web/src/lib/commands/timeline/element/keyframes/remove-keyframe.ts')
-rw-r--r--apps/web/src/lib/commands/timeline/element/keyframes/remove-keyframe.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/web/src/lib/commands/timeline/element/keyframes/remove-keyframe.ts b/apps/web/src/lib/commands/timeline/element/keyframes/remove-keyframe.ts
index 71b2ac21..35aa0860 100644
--- a/apps/web/src/lib/commands/timeline/element/keyframes/remove-keyframe.ts
+++ b/apps/web/src/lib/commands/timeline/element/keyframes/remove-keyframe.ts
@@ -79,7 +79,7 @@ function removeKeyframeAndPersist({
const shouldPersistToBase = isChannelNowEmpty && valueBefore !== null;
const baseElement = shouldPersistToBase
- ? target.setBaseValue(valueBefore)
+ ? target.setBaseValue({ value: valueBefore })
: element;
return { ...baseElement, animations: nextAnimations };