mirror of https://github.com/vector-im/riot-web
Move comment to the correct place
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>pull/21833/head
parent
1b877f2b7c
commit
262fc40afb
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue