1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-30 02:21:17 +03:00

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