From 3b676f3ea5c5217ccf7ed746c1a309d207d12cf0 Mon Sep 17 00:00:00 2001 From: kempersc Date: Tue, 13 Jan 2026 18:11:54 +0100 Subject: [PATCH] fix: remove duplicate ontology mappings rendering in LinkML viewer The slot details section was rendering close_mappings, narrow_mappings, broad_mappings, and related_mappings twice each. This caused the mappings to appear duplicated on pages like /linkml?class=AcademicArchive. Removed 68 lines of duplicate JSX code. --- frontend/src/pages/LinkMLViewerPage.tsx | 68 ------------------------- 1 file changed, 68 deletions(-) diff --git a/frontend/src/pages/LinkMLViewerPage.tsx b/frontend/src/pages/LinkMLViewerPage.tsx index ed2241a2df..1ba6b5135a 100644 --- a/frontend/src/pages/LinkMLViewerPage.tsx +++ b/frontend/src/pages/LinkMLViewerPage.tsx @@ -3054,74 +3054,6 @@ const LinkMLViewerPage: React.FC = () => { )} - {slot.close_mappings && slot.close_mappings.length > 0 && ( -
- {t('closeMappings')} -
- {slot.close_mappings.map(mapping => ( - - ))} -
-
- )} - {slot.narrow_mappings && slot.narrow_mappings.length > 0 && ( -
- {t('narrowMappings')} -
- {slot.narrow_mappings.map(mapping => ( - - ))} -
-
- )} - {slot.broad_mappings && slot.broad_mappings.length > 0 && ( -
- {t('broadMappings')} -
- {slot.broad_mappings.map(mapping => ( - - ))} -
-
- )} - {slot.related_mappings && slot.related_mappings.length > 0 && ( -
- {t('relatedMappings')} -
- {slot.related_mappings.map(mapping => ( - - ))} -
-
- )} {/* Comments section */} {slot.comments && slot.comments.length > 0 && (