Fix the bug where nested objects in the outline panel would collapse/expand their parents rather than themselves

This commit is contained in:
Aria Minaei 2023-02-03 12:58:51 +01:00
parent 6f8e91ed5f
commit 5b1caf8974

View file

@ -75,7 +75,7 @@ function Namespace(props: {
const {collapsed, setCollapsed} = useCollapseStateInOutlinePanel({ const {collapsed, setCollapsed} = useCollapseStateInOutlinePanel({
type: 'namespace', type: 'namespace',
sheet, sheet,
path: props.path, path: [...props.path, label],
}) })
const nestedChildrenElt = nested && ( const nestedChildrenElt = nested && (