fix: add judgement of currentWorkspace

This commit is contained in:
QiShaoXuan
2023-01-10 20:42:00 +08:00
parent f1ea2ee691
commit b86a03642a
3 changed files with 5 additions and 4 deletions
@@ -31,7 +31,7 @@ const Page: NextPageWithLayout = () => {
<EditorHeader />
<MobileModal />
{currentPage && (
{currentPage && currentWorkspace && (
<DynamicBlocksuite
page={currentPage}
workspace={currentWorkspace}