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:
Michael Telatynski 2023-08-01 16:26:14 +01:00 committed by GitHub
parent 5d9f5ccf0b
commit 2f2067e434
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 6 deletions

View file

@ -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)}