From 325dade59d34e70eb1bde3e8530bf28f0ab43ef9 Mon Sep 17 00:00:00 2001 From: Aria Minaei Date: Fri, 23 Jul 2021 22:37:41 +0200 Subject: [PATCH] SequenceEditorPanel now doesn't show up if there are no sequences --- .../src/panels/SequenceEditorPanel/SequenceEditorPanel.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/theatre/studio/src/panels/SequenceEditorPanel/SequenceEditorPanel.tsx b/theatre/studio/src/panels/SequenceEditorPanel/SequenceEditorPanel.tsx index 49fb239..f6fbf19 100644 --- a/theatre/studio/src/panels/SequenceEditorPanel/SequenceEditorPanel.tsx +++ b/theatre/studio/src/panels/SequenceEditorPanel/SequenceEditorPanel.tsx @@ -145,6 +145,8 @@ const Content: React.FC<{}> = () => { ) .getValue() + if (val(layoutP.tree.children).length === 0) return <> + const containerRef = prism.memo( 'containerRef', preventHorizontalWheelEvents,