no click on logo

This commit is contained in:
jrkb 2023-09-07 15:30:44 +02:00
parent 1532b9190a
commit d4e6dd5c3a

View file

@ -34,9 +34,11 @@ const ProjectListItem: React.FC<{
}, [project]) }, [project])
const select = useCallback(() => { const select = useCallback(() => {
if (depth !== 0) {
getStudio().transaction(({stateEditors}) => { getStudio().transaction(({stateEditors}) => {
stateEditors.studio.historic.panels.outline.selection.set([project]) stateEditors.studio.historic.panels.outline.selection.set([project])
}) })
}
}, [project]) }, [project])
const {collapsed, setCollapsed} = useCollapseStateInOutlinePanel(project) const {collapsed, setCollapsed} = useCollapseStateInOutlinePanel(project)