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: quick search result missing title (#2594)

JimmFlyc6d8904ca2ca
diff --git a/apps/web/src/components/pure/quick-search-modal/results.tsx b/apps/web/src/components/pure/quick-search-modal/results.tsx
index 0e5dff8db4..a5ab439735 100644
--- a/apps/web/src/components/pure/quick-search-modal/results.tsx
+++ b/apps/web/src/components/pure/quick-search-modal/results.tsx
@@ -139,7 +139,7 @@ export const Results: FC<ResultsProps> = ({
>
<StyledListItem>
{result.mode === 'edgeless' ? <EdgelessIcon /> : <PageIcon />}
- <span>{result.title}</span>
+ <span>{result.title || UNTITLED_WORKSPACE_NAME}</span>
</StyledListItem>
</Command.Item>
);