fix: prevent rendering errors

This commit is contained in:
Zeke Zhang 2025-06-17 09:57:17 +08:00
parent 70944b5201
commit e540af16b5

View File

@ -159,7 +159,7 @@ export class InheritanceCollectionMixin extends Collection {
const targetField = filterFields.find((k) => { const targetField = filterFields.find((k) => {
return k.name === v.name; return k.name === v.name;
}); });
return targetField.collectionName !== this.name; return targetField?.collectionName !== this.name;
}); });
return this.parentCollectionFields[parentCollectionName]; return this.parentCollectionFields[parentCollectionName];
} }