Skip to content

🎥 Make videos programmatically with React

@remotion/studio: Keep editor tree stable

Jonny Burgerbab3a87598ea
diff --git a/packages/studio/src/components/EditorContent.tsx b/packages/studio/src/components/EditorContent.tsx
index 5debc56b63..899c4f9117 100644
--- a/packages/studio/src/components/EditorContent.tsx
+++ b/packages/studio/src/components/EditorContent.tsx
@@ -78,13 +78,9 @@ export const EditorContent: React.FC<{
<StudioClearSelectionArea>
<InitialCompositionLoader />
<MenuToolbar readOnlyStudio={readOnlyStudio} />
- {showTimeline ? (
- <TimelineKeyframeDragStateProvider>
- {content}
- </TimelineKeyframeDragStateProvider>
- ) : (
- content
- )}
+ <TimelineKeyframeDragStateProvider>
+ {content}
+ </TimelineKeyframeDragStateProvider>
</StudioClearSelectionArea>
</TimelineSelectionProvider>
);
diff --git a/packages/studio/src/test/timeline-selection.test.ts b/packages/studio/src/test/timeline-selection.test.ts
index 5c2866b352..60e13cc506 100644
--- a/packages/studio/src/test/timeline-selection.test.ts
+++ b/packages/studio/src/test/timeline-selection.test.ts
@@ -950,8 +950,8 @@ test('Timeline from drag removes the prop at the default value', () => {
});
});
-test('Timeline outlines should be enabled', () => {
- expect(ENABLE_OUTLINES).toBe(true);
+test('Timeline outlines should not be enabled', () => {
+ expect(ENABLE_OUTLINES).toBe(false);
});
test('Timeline outlines visibility is enabled by default and persisted', () => {