From b76499680112dff3b5be953a2e65b06ff65c5902 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Fri, 27 Nov 2020 14:29:50 +0300 Subject: [PATCH] Fixed #700 - Error with empty objects --- src/components/utils/ObjectUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/utils/ObjectUtils.js b/src/components/utils/ObjectUtils.js index 9a6ee1118d..5dd3dd85da 100755 --- a/src/components/utils/ObjectUtils.js +++ b/src/components/utils/ObjectUtils.js @@ -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); }