diff --git a/modules/ui/sections/raw_member_editor.js b/modules/ui/sections/raw_member_editor.js index 8671760243..bc6e92d14b 100644 --- a/modules/ui/sections/raw_member_editor.js +++ b/modules/ui/sections/raw_member_editor.js @@ -193,7 +193,12 @@ export function uiSectionRawMemberEditor(context) { .attr('class', 'member-entity-type') .text(function(d) { var matched = presetManager.match(d.member, context.graph()); - return (matched && matched.name()) || utilDisplayType(d.member.id); + + var fullName = (matched && matched.name()) || utilDisplayType(d.member.id); + + // Remove the disambiguator (text in parentheses) from the full name + var simplifiedName = fullName.replace(/\s*\(.*?\)$/, ''); // Removes " (…)" at the end + return simplifiedName; }); labelLink diff --git a/modules/ui/sections/raw_membership_editor.js b/modules/ui/sections/raw_membership_editor.js index 58f0d076dc..7c0bb53a9b 100644 --- a/modules/ui/sections/raw_membership_editor.js +++ b/modules/ui/sections/raw_membership_editor.js @@ -377,7 +377,11 @@ export function uiSectionRawMembershipEditor(context) { .attr('class', 'member-entity-type') .text(function(d) { var matched = presetManager.match(d.relation, context.graph()); - return (matched && matched.name()) || t.html('inspector.relation'); + var fullName = (matched && matched.name()) || t('inspector.relation'); + + // Remove the disambiguator (text in parentheses) from the full name + var simplifiedName = fullName.replace(/\s*\(.*?\)$/, ''); // Removes " (…)" at the end + return simplifiedName; }); labelLink