Skip to content

Commit

Permalink
Merge pull request #175 from CBIIT/CDS-836_samples-overflow-fix_4.1.0
Browse files Browse the repository at this point in the history
any rows with more than 5 samples will be truncated with an elipsis for 4.1.0
  • Loading branch information
iksheth committed Apr 25, 2024
2 parents 9052af8 + 0178408 commit a515afb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pages/dashTemplate/tabs/tableConfig/Column.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ export const CustomCellView = (props) => {
} else if (typeof displayEmpty === "boolean") {
return (<Typography>{displayEmpty || props[dataField] ? props[dataField] : ""}</Typography>);
} else if (Array.isArray(label)) {
if (label.length > 5){
return (<Typography>{label.slice(0,5).join(", ") + ", ..."}</Typography>);
}
return (<Typography>{label.join(", ")}</Typography>);
}

Expand Down

0 comments on commit a515afb

Please sign in to comment.