Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: deepScan warning

JimmFlyd9ad8ee6086c
diff --git a/packages/app/src/components/quick-search/PublishedResults.tsx b/packages/app/src/components/quick-search/PublishedResults.tsx
index 2a99737110..d0564b4cd7 100644
--- a/packages/app/src/components/quick-search/PublishedResults.tsx
+++ b/packages/app/src/components/quick-search/PublishedResults.tsx
@@ -29,7 +29,7 @@ export const PublishedResults = (props: {
.loadPublicWorkspace(router.query.workspaceId as string)
.then(data => {
setPageList(data.blocksuiteWorkspace?.meta.pageMetas as PageMeta[]);
- if (data && data.blocksuiteWorkspace) {
+ if (data.blocksuiteWorkspace) {
setWorkspace(data.blocksuiteWorkspace);
setPublishWorkspaceName(data.blocksuiteWorkspace.meta.name);
}