diff --git a/theatre/studio/src/panels/OutlinePanel/ObjectsList/ObjectsList.tsx b/theatre/studio/src/panels/OutlinePanel/ObjectsList/ObjectsList.tsx
index 10a3e38..5946130 100644
--- a/theatre/studio/src/panels/OutlinePanel/ObjectsList/ObjectsList.tsx
+++ b/theatre/studio/src/panels/OutlinePanel/ObjectsList/ObjectsList.tsx
@@ -39,42 +39,40 @@ function NamespaceTree(props: {
return (
<>
{[...props.namespace.entries()].map(([label, {object, nested}]) => {
- const children = (
+ const nestedChildrenElt = nested && (
+
+ )
+ const sameNameElt = object && (
+
+ )
+
+ return (
- {object && (
-
- )}
- {nested && (
-
)}
)
-
- return nested ? (
-
- ) : (
- // if we don't have any nested items, just render the children with no wrapper, here.
- children
- )
})}
>
)