From 53558c2cbe82f7c826d722fa08009cc9f5c35a6a Mon Sep 17 00:00:00 2001 From: lucaronin Date: Fri, 20 Feb 2026 23:43:39 +0100 Subject: [PATCH] fix(notelist): exclude Type from relationship groups Type is a special relationship handled separately by the sidebar, so it should not appear as one of the generic relationship groups in the note list entity view. Added case-insensitive filter to exclude the "type" key from the otherKeys loop. Co-Authored-By: Claude Opus 4.6 --- src/components/NoteList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/NoteList.tsx b/src/components/NoteList.tsx index a6a8d4c9..259968b4 100644 --- a/src/components/NoteList.tsx +++ b/src/components/NoteList.tsx @@ -172,7 +172,7 @@ function buildRelationshipGroups( // 5. All other generic relationship fields (alphabetically) const handledKeys = new Set(['Has', 'Topics']) const otherKeys = Object.keys(rels) - .filter((k) => !handledKeys.has(k)) + .filter((k) => !handledKeys.has(k) && k.toLowerCase() !== 'type') .sort((a, b) => a.localeCompare(b)) for (const key of otherKeys) { const refs = rels[key]