Skip to content

Commit

Permalink
addressed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hams7504 committed Nov 6, 2023
1 parent 1c7f174 commit a5db27f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
26 changes: 14 additions & 12 deletions src/components/CollapsibleTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,18 +163,20 @@ const CollapsibleRow = (props) => {
{open ? <KeyboardArrowUpIcon /> : <KeyboardArrowDownIcon />}
</IconButton>
</StyledTableCell>
{row.data.map((cell, i) => (
cell.truncate ?
(
<TruncatedTableCell key={i}>
{cell.value}
</TruncatedTableCell>
) : (
<StyledTableCell key={i}>
{cell.value}
</StyledTableCell>
)
))}
{row.data.map((cell, i) => {
if (!('truncate' in cell)) {
cell.truncate = false;
}
return cell?.truncate ? (
<TruncatedTableCell key={i}>
{cell.value}
</TruncatedTableCell>
) : (
<StyledTableCell key={i}>
{cell.value}
</StyledTableCell>
);
})}
</TableRow>
{/* subtable */}
<TableRow>
Expand Down
1 change: 0 additions & 1 deletion src/components/data_search/DatasetSearchTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ export const DatasetSearchTable = (props) => {
},
{
value: entry[0].study.description,
truncate: false,
},
{
value: entry.length,
Expand Down

0 comments on commit a5db27f

Please sign in to comment.