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])
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)