1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

fixed next module loading and undefined document

This commit is contained in:
Fedor Katurov 2022-01-13 10:45:01 +07:00
parent de999a0f1f
commit f964011af1
4 changed files with 19 additions and 1 deletions

View file

@ -9,6 +9,10 @@ interface IProps {
}
const SidebarRouter: FC<IProps> = ({ prefix = '', isLab }) => {
if (typeof document === 'undefined') {
return null;
}
return createPortal(
<Authorized>
<SubmitBar isLab={isLab} />