You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +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(
|
const collapsed = SpaceTreeLevelLayoutStore.instance.getSpaceCollapsedState(
|
||||||
props.space.roomId,
|
props.space.roomId,
|
||||||
this.props.parents,
|
this.props.parents,
|
||||||
!props.isNested,
|
!props.isNested, // default to collapsed for root items
|
||||||
);
|
);
|
||||||
|
|
||||||
this.state = {
|
this.state = {
|
||||||
// default to collapsed for root items
|
|
||||||
collapsed: collapsed,
|
collapsed: collapsed,
|
||||||
contextMenuPosition: null,
|
contextMenuPosition: null,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user