1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-08-06 10:22:45 +03:00

Conform more of the codebase with strictNullChecks (#10703)

This commit is contained in:
Michael Telatynski
2023-04-25 09:28:48 +01:00
committed by GitHub
parent db40479910
commit 619a9e8542
24 changed files with 108 additions and 77 deletions

View File

@@ -122,7 +122,7 @@ export const SpaceButton = forwardRef<HTMLElement, IButtonProps>(
}
let contextMenu: JSX.Element | undefined;
if (menuDisplayed && handle.current && ContextMenuComponent) {
if (space && menuDisplayed && handle.current && ContextMenuComponent) {
contextMenu = (
<ContextMenuComponent
{...toRightOf(handle.current.getBoundingClientRect(), 0)}