Skip to content

Commit

Permalink
Merge pull request #1461 from hubmapconsortium/ubkgCache
Browse files Browse the repository at this point in the history
Fix Dataset Type Display for collection/epicollection association tables
  • Loading branch information
yuanzhou authored Aug 30, 2024
2 parents 44bb4b6 + a952b32 commit ea586ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/src/components/collections/collections.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

}
Expand Down
4 changes: 2 additions & 2 deletions src/src/components/collections/epicollections.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

}
Expand Down

0 comments on commit ea586ad

Please sign in to comment.