Skip to content

Commit

Permalink
fix(composer): Fix for duplicate submodels in tree on adding objects …
Browse files Browse the repository at this point in the history
…to scene (#370)

Co-authored-by: Emily Dodds <dodemily@amazon.com>
  • Loading branch information
mumanity and mumanity committed Nov 16, 2022
1 parent 3475ebd commit 6c4bcdf
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,7 @@ const SubModelTree: FC<SubModelTreeProps> = ({

if (skipNode) {
return (
<>
{nodes.map((c) => (
<SubModelTree key={c.id} parentRef={parentRef} object3D={c} expanded={false} />
))}
</>
<>{nodes[0] && <SubModelTree key={nodes[0].id} parentRef={parentRef} object3D={nodes[0]} expanded={false} />}</>
);
}

Expand Down

0 comments on commit 6c4bcdf

Please sign in to comment.