Skip to content

Commit

Permalink
[DUOS-3049] Fix data custodians on My DAC Datasets (#2544)
Browse files Browse the repository at this point in the history
  • Loading branch information
fboulnois authored Apr 18, 2024
1 parent 9aded66 commit 873eedd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/dac_dataset_table/DACDatasetTableCellData.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ export function datasetNameCellData({dataset, label = 'datasetNameCellData'}) {
}

export function dataCustodianCellData({dataset, label = 'dataCustodianCellData'}) {
// Newer datasets have a list of data custodian emails.
// Older datasets may or may not have a data depositor
const displayValue = firstNonEmptyPropertyValue(dataset, ['Data Custodian Email', 'Data Depositor', 'dataCustodianEmail']);
const displayValue = firstNonEmptyPropertyValue(dataset, ['dataCustodianEmail']);
return {
data: <div className={style['cell-data']}>{displayValue}</div>,
value: displayValue,
Expand Down

0 comments on commit 873eedd

Please sign in to comment.