fix: show type icon and label for "Note" type in search and autocomplete
The "Note" type was explicitly filtered out with `isA !== 'Note'` in SearchPanel, NoteAutocomplete, and useNoteSearch, preventing its icon and label from appearing. Remove this special-casing so all types display consistently. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -12,7 +12,7 @@ export interface NoteSearchResult extends NoteSearchResultItem {
|
||||
}
|
||||
|
||||
function toResult(e: VaultEntry, typeEntryMap: Record<string, VaultEntry>): NoteSearchResult {
|
||||
const noteType = e.isA && e.isA !== 'Note' ? e.isA : undefined
|
||||
const noteType = e.isA || undefined
|
||||
const te = typeEntryMap[e.isA ?? '']
|
||||
return {
|
||||
entry: e,
|
||||
|
||||
Reference in New Issue
Block a user