mirror of https://github.com/vector-im/riot-web
				
				
				
			fix react error in console
							parent
							
								
									600375cafe
								
							
						
					
					
						commit
						fa60b24a9f
					
				|  | @ -260,7 +260,7 @@ export class SpaceItem extends React.PureComponent<IItemProps, IItemState> { | |||
| 
 | ||||
|     render() { | ||||
|         // 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; | ||||
| 
 | ||||
|         const collapsed = this.isCollapsed; | ||||
|  | @ -299,7 +299,7 @@ export class SpaceItem extends React.PureComponent<IItemProps, IItemState> { | |||
|             /> : null; | ||||
| 
 | ||||
|         // eslint-disable-next-line @typescript-eslint/no-unused-vars
 | ||||
|         const { tabIndex, ...dragHandleProps } = this.props.dragHandleProps || {}; | ||||
|         const { tabIndex, ...restDragHandleProps } = dragHandleProps || {}; | ||||
| 
 | ||||
|         return ( | ||||
|             <li | ||||
|  | @ -310,7 +310,7 @@ export class SpaceItem extends React.PureComponent<IItemProps, IItemState> { | |||
|                 role="treeitem" | ||||
|             > | ||||
|                 <SpaceButton | ||||
|                     {...dragHandleProps} | ||||
|                     {...restDragHandleProps} | ||||
|                     space={space} | ||||
|                     className={isInvite ? "mx_SpaceButton_invite" : undefined} | ||||
|                     selected={activeSpaces.includes(space)} | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Michael Telatynski
						Michael Telatynski