fix react error in console
This commit is contained in:
parent
600375cafe
commit
fa60b24a9f
1 changed files with 3 additions and 3 deletions
|
@ -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)}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue