Fix home/all rooms context menu in space panel (#11350)
* Fix home/all rooms context menu in space panel * Fix tests
This commit is contained in:
parent
5d9f5ccf0b
commit
2f2067e434
3 changed files with 9 additions and 6 deletions
|
@ -121,7 +121,7 @@ export const SpaceButton: React.FC<IButtonProps> = ({
|
|||
}
|
||||
|
||||
let contextMenu: JSX.Element | undefined;
|
||||
if (space && menuDisplayed && handle.current && ContextMenuComponent) {
|
||||
if (menuDisplayed && handle.current && ContextMenuComponent) {
|
||||
contextMenu = (
|
||||
<ContextMenuComponent
|
||||
{...toRightOf(handle.current.getBoundingClientRect(), 0)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue