Skip to content

Commit

Permalink
TableUtils - Exempt else clause
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinorland committed Aug 6, 2018
1 parent ed53cb4 commit b3498cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/utils/src/tableUtils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export const rowsFromObject = (object, fields, skipEmptyValues, defaultTransform

// Empty values are empty strings (normalised above)
// We never render null
/* istanbul ignore else */
if (result !== null && !(skipEmptyValues && result === '')) {
table.rows.push([heading, result]);
table.names.push(nameAttribute);
Expand Down

0 comments on commit b3498cc

Please sign in to comment.