Skip to content

Commit

Permalink
Refactor using underscore.js
Browse files Browse the repository at this point in the history
  • Loading branch information
minhaminha committed Oct 23, 2024
1 parent 870dfe1 commit 2c136ae
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -705,8 +705,7 @@ hqDefine("cloudcare/js/form_entry/form_ui", [
}
}
};
if (Object.prototype.hasOwnProperty.call(element, 'binding') &&
Object.prototype.hasOwnProperty.call(element, 'ix') && allChildren && allChildren.length > 0) {
if (_.has(element, 'binding') && _.has(element, 'ix') && !_.isEmpty(allChildren)) {
findChildAndSetFilename(allChildren);
}

Expand Down

0 comments on commit 2c136ae

Please sign in to comment.