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)