Skip to content

Commit

Permalink
adds check for if value is null or empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
hellobontempo committed Oct 11, 2021
1 parent e329771 commit fd7744e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/lib/core/addon/components/info-table-row.js
Expand Up @@ -47,9 +47,10 @@ export default Component.extend({

valueIsEmpty: computed('value', function() {
let { value } = this;
console.log('value', value);
if (typeOf(value) === 'array' && value.length === 0) {
return true;
} else if (value === undefined) {
} else if (value === undefined || null || '') {
return true;
} else {
return false;
Expand Down

0 comments on commit fd7744e

Please sign in to comment.