From d4e6dd5c3abd9a3d97b66e265f749523af698a59 Mon Sep 17 00:00:00 2001 From: themancalledjakob Date: Thu, 7 Sep 2023 15:30:44 +0200 Subject: [PATCH] no click on logo --- .../panels/OutlinePanel/ProjectsList/ProjectListItem.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/theatre/studio/src/panels/OutlinePanel/ProjectsList/ProjectListItem.tsx b/theatre/studio/src/panels/OutlinePanel/ProjectsList/ProjectListItem.tsx index e3073e0..6aad904 100644 --- a/theatre/studio/src/panels/OutlinePanel/ProjectsList/ProjectListItem.tsx +++ b/theatre/studio/src/panels/OutlinePanel/ProjectsList/ProjectListItem.tsx @@ -34,9 +34,11 @@ const ProjectListItem: React.FC<{ }, [project]) const select = useCallback(() => { - getStudio().transaction(({stateEditors}) => { - stateEditors.studio.historic.panels.outline.selection.set([project]) - }) + if (depth !== 0) { + getStudio().transaction(({stateEditors}) => { + stateEditors.studio.historic.panels.outline.selection.set([project]) + }) + } }, [project]) const {collapsed, setCollapsed} = useCollapseStateInOutlinePanel(project)