mirror of
https://github.com/docmost/docmost.git
synced 2026-05-18 23:44:24 +08: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