Skip to content

Commit

Permalink
fix(composer): Set tree hierarchy items to auto-collapsed on load (#380)
Browse files Browse the repository at this point in the history
Co-authored-by: Emily Dodds <dodemily@amazon.com>
  • Loading branch information
mumanity and mumanity committed Nov 23, 2022
1 parent 465ccac commit dad88a0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 602 deletions.
8 changes: 4 additions & 4 deletions packages/scene-composer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,10 @@
"jest": {
"coverageThreshold": {
"global": {
"lines": 77.26,
"statements": 76.36,
"functions": 76.71,
"branches": 62.94,
"lines": 77.23,
"statements": 76.33,
"functions": 76.64,
"branches": 62.91,
"branchesTrue": 100
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const SceneHierarchyTreeItem: FC<SceneHierarchyTreeItemProps> = ({
name: labelText,
componentTypes,
enableDragAndDrop,
expanded: defaultExpanded = true,
expanded: defaultExpanded = false,
}: SceneHierarchyTreeItemProps) => {
const [expanded, setExpanded] = useState(defaultExpanded);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ exports[`SceneHierarchyTreeItem should render SubModelTree when item has a model
datatype="ModelRef"
labeltext="[object Object]"
selectionmode="single"
>
<enhancedtree
acceptdrop="AcceptableDropTypes"
/>
</enhancedtreeitem>
/>
</div>
`;

0 comments on commit dad88a0

Please sign in to comment.