Skip to content

Commit

Permalink
Fixed #556 - Error with empty objects
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed Nov 25, 2020
1 parent c108bb9 commit 1a68b60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/utils/ObjectUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default class ObjectUtils {
}

static resolveFieldData(data, field) {
if (data && field) {
if (data && Object.keys(data).length && field) {
if (this.isFunction(field)) {
return field(data);
}
Expand Down

0 comments on commit 1a68b60

Please sign in to comment.