mirror of
https://github.com/Shadowfita/docmost.git
synced 2025-11-16 09:41:04 +10:00
fix header and redirect home
This commit is contained in:
@ -20,6 +20,10 @@ export default function TopMenu() {
|
||||
const user = currentUser.user;
|
||||
const workspace = currentUser.workspace;
|
||||
|
||||
if (!user || !workspace) {
|
||||
return <></>;
|
||||
}
|
||||
|
||||
return (
|
||||
<Menu width={250} position="bottom-end" withArrow shadow={"lg"}>
|
||||
<Menu.Target>
|
||||
|
||||
Reference in New Issue
Block a user