Skip to content

Commit

Permalink
fix: collapse all condition
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Dec 6, 2020
1 parent 4577697 commit 37de349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/blocks/src/ComponentJSX/ComponentJSXTree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const ComponentJSXTree: FC<ComponentJSXTreeProps> = ({ component }) => {
data: {
total,
canExpand: expanded < total,
canCollapse: expanded > 0,
canCollapse: expanded > 0 && expanded < total,
},
});
};
Expand Down

0 comments on commit 37de349

Please sign in to comment.