You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-04 11:51:45 +03:00
Move comment to the correct place
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user