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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user