Fixed #556 - Error with empty objects

pull/682/head
Cagatay Civici 2020-11-25 17:52:03 +03:00
parent c108bb9b87
commit 1a68b600b6
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}