no click on logo
This commit is contained in:
parent
1532b9190a
commit
d4e6dd5c3a
1 changed files with 5 additions and 3 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue