Skip to content

🎥 Make videos programmatically with React

`@remotion/studio`: Unmount filmstrip when allowed

Jonny Burger6edef6aefa58
diff --git a/packages/studio/src/components/Timeline/TimelineVideoInfo.tsx b/packages/studio/src/components/Timeline/TimelineVideoInfo.tsx
index 7fd9c3a731..dd912da543 100644
--- a/packages/studio/src/components/Timeline/TimelineVideoInfo.tsx
+++ b/packages/studio/src/components/Timeline/TimelineVideoInfo.tsx
@@ -324,7 +324,10 @@ export const TimelineVideoInfo: React.FC<{
// Don't extract frames if all slots are filled
if (unfilled.length === 0) {
- return;
+ return () => {
+ current.removeChild(canvas);
+ clearOldFrames();
+ };
}
}