fix: quick search result missing title (#2594)

This commit is contained in:
JimmFly 2023-05-30 16:45:00 +08:00 committed by GitHub
parent 8c5a1e2de3
commit c6d8904ca2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>
);