Skip to content

🎥 Make videos programmatically with React

Discard changes to packages/studio/src/components/Timeline/TimelineSelection.tsx

Jonny Burger5989456b9cc4
diff --git a/packages/studio/src/components/Timeline/TimelineSelection.tsx b/packages/studio/src/components/Timeline/TimelineSelection.tsx
index 19f191fb70..6a68c57fc5 100644
--- a/packages/studio/src/components/Timeline/TimelineSelection.tsx
+++ b/packages/studio/src/components/Timeline/TimelineSelection.tsx
@@ -17,7 +17,6 @@ import type {
import {TIMELINE_PADDING} from '../../helpers/timeline-layout';
import {timelineNodePathInfoToKey} from '../../helpers/timeline-node-path-key';
import {useKeybinding} from '../../helpers/use-keybinding';
-import {EditorShowOutlinesContext} from '../../state/editor-outlines';
import {TimelineClipboardKeybindings} from './TimelineClipboardKeybindings';
import {TimelineDeleteKeybindings} from './TimelineDeleteKeybindings';
@@ -444,9 +443,8 @@ export const TimelineSelectionProvider: React.FC<{
readonly children: React.ReactNode;
}> = ({children}) => {
const {previewServerState} = useContext(StudioServerConnectionCtx);
- const {editorShowOutlines} = useContext(EditorShowOutlinesContext);
const canSelect =
- (SELECTION_ENABLED || (ENABLE_OUTLINES && editorShowOutlines)) &&
+ (SELECTION_ENABLED || ENABLE_OUTLINES) &&
previewServerState.type === 'connected' &&
!window.remotion_isReadOnlyStudio;
const [selectedItems, setSelectedItems] = useState<