From 5b1caf8974769c1cd86e596da0156769e0a368e6 Mon Sep 17 00:00:00 2001 From: Aria Minaei Date: Fri, 3 Feb 2023 12:58:51 +0100 Subject: [PATCH] Fix the bug where nested objects in the outline panel would collapse/expand their parents rather than themselves --- .../studio/src/panels/OutlinePanel/ObjectsList/ObjectsList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theatre/studio/src/panels/OutlinePanel/ObjectsList/ObjectsList.tsx b/theatre/studio/src/panels/OutlinePanel/ObjectsList/ObjectsList.tsx index aa97250..ab2e4e1 100644 --- a/theatre/studio/src/panels/OutlinePanel/ObjectsList/ObjectsList.tsx +++ b/theatre/studio/src/panels/OutlinePanel/ObjectsList/ObjectsList.tsx @@ -75,7 +75,7 @@ function Namespace(props: { const {collapsed, setCollapsed} = useCollapseStateInOutlinePanel({ type: 'namespace', sheet, - path: props.path, + path: [...props.path, label], }) const nestedChildrenElt = nested && (