chore: fix deepScan warning

This commit is contained in:
JimmFly 2023-01-30 19:06:52 +08:00
parent 5bd95f68c2
commit 9ee78221a7

View File

@ -31,7 +31,7 @@ const Page: NextPageWithLayout = () => {
.loadPublicWorkspace(router.query.workspaceId as string)
.then(data => {
setWorkspaceName(data.blocksuiteWorkspace?.meta.name as string);
if (data && data.blocksuiteWorkspace) {
if (data.blocksuiteWorkspace) {
setWorkspace(data.blocksuiteWorkspace);
if (
router.query.pageId &&