feat: show new workspace modal when user is not a member of any workspaces

This commit is contained in:
Henry
2025-05-30 14:09:44 +01:00
parent db19a8dc45
commit e61dd4e27e
3 changed files with 27 additions and 7 deletions

View File

@@ -11,7 +11,9 @@ import { NewBoardForm } from "./components/NewBoardForm";
export default function BoardsPage() {
const { openModal, modalContentType } = useModal();
const { workspace } = useWorkspace();
const { workspace, hasLoaded } = useWorkspace();
if (hasLoaded && !workspace.publicId) openModal("NEW_WORKSPACE");
return (
<>