mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-11 09:52:35 +00:00
Fixed #556 - Error with empty objects
This commit is contained in:
parent
c108bb9b87
commit
1a68b600b6
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue