From 00f3ed7a47fd51b3c06db29f8a0a4b6819483044 Mon Sep 17 00:00:00 2001 From: Florian Boulnois Date: Thu, 4 Jan 2024 09:29:48 -0500 Subject: [PATCH] fix: return undefined instead of error when no data custodian --- src/components/data_search/DatasetSearchTable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/data_search/DatasetSearchTable.js b/src/components/data_search/DatasetSearchTable.js index ff424908f..4420d1129 100644 --- a/src/components/data_search/DatasetSearchTable.js +++ b/src/components/data_search/DatasetSearchTable.js @@ -148,7 +148,7 @@ export const DatasetSearchTable = (props) => { truncate: true, }, { - value: entry[0].study.dataCustodianEmail.join(', '), + value: entry[0].study.dataCustodianEmail?.join(', '), truncate: true, }, ],