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.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix(core): retrieve missing search result titles (#4718)
JimmFly780c164cc8e1
diff --git a/packages/frontend/core/src/components/pure/cmdk/data.tsx b/packages/frontend/core/src/components/pure/cmdk/data.tsxindex bb0c5b358a..6c0d6779d7 100644--- a/packages/frontend/core/src/components/pure/cmdk/data.tsx+++ b/packages/frontend/core/src/components/pure/cmdk/data.tsx@@ -157,6 +157,7 @@ export const pageToCommand = (): CMDKCommand => {const pageMode = store.get(pageSettingsAtom)?.[page.id]?.mode;const currentWorkspaceId = store.get(currentWorkspaceIdAtom);+const title = page.title || t['Untitled']();const commandLabel = label || {title: title,@@ -222,7 +223,7 @@ export const usePageCommands = () => {pageMode === 'edgeless' ? 'affine:edgeless' : 'affine:pages';const label = {- title: page.title,+ title: page.title || t['Untitled'](), // Used to ensure that a title existssubTitle:searchResults.find(result => result.space === page.id)?.content ||'',