You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-04 23:02:14 +03:00
fix react error in console
This commit is contained in:
@@ -260,7 +260,7 @@ export class SpaceItem extends React.PureComponent<IItemProps, IItemState> {
|
|||||||
|
|
||||||
render() {
|
render() {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
const { space, activeSpaces, isNested, isPanelCollapsed, onExpand, parents, innerRef,
|
const { space, activeSpaces, isNested, isPanelCollapsed, onExpand, parents, innerRef, dragHandleProps,
|
||||||
...otherProps } = this.props;
|
...otherProps } = this.props;
|
||||||
|
|
||||||
const collapsed = this.isCollapsed;
|
const collapsed = this.isCollapsed;
|
||||||
@@ -299,7 +299,7 @@ export class SpaceItem extends React.PureComponent<IItemProps, IItemState> {
|
|||||||
/> : null;
|
/> : null;
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
const { tabIndex, ...dragHandleProps } = this.props.dragHandleProps || {};
|
const { tabIndex, ...restDragHandleProps } = dragHandleProps || {};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<li
|
<li
|
||||||
@@ -310,7 +310,7 @@ export class SpaceItem extends React.PureComponent<IItemProps, IItemState> {
|
|||||||
role="treeitem"
|
role="treeitem"
|
||||||
>
|
>
|
||||||
<SpaceButton
|
<SpaceButton
|
||||||
{...dragHandleProps}
|
{...restDragHandleProps}
|
||||||
space={space}
|
space={space}
|
||||||
className={isInvite ? "mx_SpaceButton_invite" : undefined}
|
className={isInvite ? "mx_SpaceButton_invite" : undefined}
|
||||||
selected={activeSpaces.includes(space)}
|
selected={activeSpaces.includes(space)}
|
||||||
|
Reference in New Issue
Block a user