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 <noreply@anthropic.com>
This commit is contained in:
lucaronin
2026-02-20 23:43:39 +01:00
parent 2286385244
commit 53558c2cbe

View File

@@ -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]