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): cmdk command highlight (#9390)
pengx178bceece5b180
diff --git a/packages/frontend/core/src/modules/quicksearch/views/highlight-text.tsx b/packages/frontend/core/src/modules/quicksearch/views/highlight-text.tsxindex 8ce2a8bfce..e927162858 100644--- a/packages/frontend/core/src/modules/quicksearch/views/highlight-text.tsx+++ b/packages/frontend/core/src/modules/quicksearch/views/highlight-text.tsx@@ -30,11 +30,11 @@ export const HighlightText = ({ text = '', end, start }: HighlightProps) => {return (<span className={styles.highlightText}>- {parts.map(part =>+ {parts.map((part, index) =>typeof part === 'string' ? (<Fragment key={part}>{part}</Fragment>) : (- <span key={part.h} className={styles.highlightKeyword}>+ <span key={part.h + '.' + index} className={styles.highlightKeyword}>{part.h}</span>)