[develop]: Fix check in belongsTo class.
This commit is contained in:
parent
2d9141d5c1
commit
f8186cb2ea
|
@ -70,7 +70,7 @@ export class BelongsTo {
|
|||
if (field) {
|
||||
field = Object.assign({}, field);
|
||||
let json: any = element;
|
||||
if (field.path.length > 0) {
|
||||
if (field.path.length > 0 && json) {
|
||||
if (Array.isArray(json)) {
|
||||
return json.findIndex(value => BelongsTo.check(value, field)) != -1;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue