Skip to content

Commit

Permalink
fix: remove extra rows which are empty in moreInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvanshus-crest committed May 28, 2021
1 parent 9be7d81 commit 5fbda62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/src/main/webapp/components/table/TableExpansionRow.jsx
Expand Up @@ -17,7 +17,8 @@ function getExpansionRowData(row, moreInfo) {
if (moreInfo?.length) {
moreInfo.forEach((val) => {
const label = _(val.label);
if (val.field in row) {
// remove extra rows which are empty in moreInfo
if (val.field in row && row[val.field] !== '') {
DefinitionLists.push(<DL.Term key={val.field}>{label}</DL.Term>);
DefinitionLists.push(
<DL.Description key={`${val.field}_decr`}>
Expand Down

0 comments on commit 5fbda62

Please sign in to comment.