Move comment to the correct place

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-05-12 07:12:00 +02:00
parent 1b877f2b7c
commit 262fc40afb
No known key found for this signature in database
GPG Key ID: 9760693FDD98A790
1 changed files with 1 additions and 2 deletions

View File

@ -72,11 +72,10 @@ export class SpaceItem extends React.PureComponent<IItemProps, IItemState> {
const collapsed = SpaceTreeLevelLayoutStore.instance.getSpaceCollapsedState(
props.space.roomId,
this.props.parents,
!props.isNested,
!props.isNested, // default to collapsed for root items
);
this.state = {
// default to collapsed for root items
collapsed: collapsed,
contextMenuPosition: null,
};