fix: infinite workspace loading (#1432)

This commit is contained in:
Himself65
2023-03-08 22:31:01 -06:00
committed by GitHub
parent 0f11b73d93
commit 1011088248
2 changed files with 11 additions and 2 deletions

View File

@@ -36,6 +36,12 @@ export const Modal = (props: ModalProps) => {
...otherProps
} = props;
const [vertical, horizontal] = wrapperPosition;
// Fixme: This is a workaround for Mui bug
// Refs: https://github.com/mui/material-ui/issues/33748
if (!open) {
return null;
}
return (
<StyledModal
{...otherProps}