From 6c4bcdfd9c76895c76b487f0dfd323e76770d8b3 Mon Sep 17 00:00:00 2001 From: Emily Dodds Date: Tue, 15 Nov 2022 18:14:29 -0600 Subject: [PATCH] fix(composer): Fix for duplicate submodels in tree on adding objects to scene (#370) Co-authored-by: Emily Dodds --- .../SceneHierarchyPanel/components/SubModelTree/index.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/scene-composer/src/components/panels/SceneHierarchyPanel/components/SubModelTree/index.tsx b/packages/scene-composer/src/components/panels/SceneHierarchyPanel/components/SubModelTree/index.tsx index 719ec7570..905681e68 100644 --- a/packages/scene-composer/src/components/panels/SceneHierarchyPanel/components/SubModelTree/index.tsx +++ b/packages/scene-composer/src/components/panels/SceneHierarchyPanel/components/SubModelTree/index.tsx @@ -112,11 +112,7 @@ const SubModelTree: FC = ({ if (skipNode) { return ( - <> - {nodes.map((c) => ( - - ))} - + <>{nodes[0] && } ); }