From a952b324b6d4a1e55f5131c85153671cbc1abc6a Mon Sep 17 00:00:00 2001 From: Birdmachine Date: Fri, 30 Aug 2024 03:44:55 -0400 Subject: [PATCH] Fix Dataset Type Display for collection/epicollection association tables --- src/src/components/collections/collections.jsx | 4 ++-- src/src/components/collections/epicollections.jsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/src/components/collections/collections.jsx b/src/src/components/collections/collections.jsx index f85c2659..0b0f7d5b 100644 --- a/src/src/components/collections/collections.jsx +++ b/src/src/components/collections/collections.jsx @@ -97,8 +97,8 @@ export function CollectionForm (props){ entity.id = entity.uuid; //When coming from the Entity, the Datasets use dataset_type, from the Search UI they pass display_subtype instead if (entity.dataset_type && entity.dataset_type.length > 0) { - var subtype = generateDisplaySubtypeSimple_UBKG(entity.dataset_type[0],props.dtl_all); - entity.display_subtype = subtype; + // var subtype = generateDisplaySubtypeSimple_UBKG(entity.dataset_type[0],props.dtl_all); + entity.display_subtype = entity.dataset_type; }else { } diff --git a/src/src/components/collections/epicollections.jsx b/src/src/components/collections/epicollections.jsx index ffc1fee8..809bb9fd 100644 --- a/src/src/components/collections/epicollections.jsx +++ b/src/src/components/collections/epicollections.jsx @@ -97,8 +97,8 @@ export function EPICollectionForm (props){ entity.id = entity.uuid; //When coming from the Entity, the Datasets use dataset_type, from the Search UI they pass display_subtype instead if (entity.dataset_type && entity.dataset_type.length > 0) { - var subtype = generateDisplaySubtypeSimple_UBKG(entity.dataset_type[0],props.dtl_all); - entity.display_subtype = subtype; + // var subtype = generateDisplaySubtypeSimple_UBKG(entity.dataset_type[0],props.dtl_all); + entity.display_subtype = entity.dataset_type; }else { }