diff --git a/src/components/CollapsibleTable.js b/src/components/CollapsibleTable.js index fc9df301b..424b6d7fc 100644 --- a/src/components/CollapsibleTable.js +++ b/src/components/CollapsibleTable.js @@ -163,18 +163,20 @@ const CollapsibleRow = (props) => { {open ? : } - {row.data.map((cell, i) => ( - cell.truncate ? - ( - - {cell.value} - - ) : ( - - {cell.value} - - ) - ))} + {row.data.map((cell, i) => { + if (!('truncate' in cell)) { + cell.truncate = false; + } + return cell?.truncate ? ( + + {cell.value} + + ) : ( + + {cell.value} + + ); + })} {/* subtable */} diff --git a/src/components/data_search/DatasetSearchTable.js b/src/components/data_search/DatasetSearchTable.js index f666e6b57..4cdf80b9d 100644 --- a/src/components/data_search/DatasetSearchTable.js +++ b/src/components/data_search/DatasetSearchTable.js @@ -119,7 +119,6 @@ export const DatasetSearchTable = (props) => { }, { value: entry[0].study.description, - truncate: false, }, { value: entry.length,