fix: issue with SQL collection when the source collection is deleted

This commit is contained in:
xilesun 2023-12-06 10:09:42 +08:00
parent 95bec2278f
commit ad25fe704c

View File

@ -55,6 +55,9 @@ const useSourceFieldsOptions = () => {
}),
};
});
if (!collection) {
return;
}
const children = (collection.fields as FieldOptions[])
.filter((v) => !['hasOne', 'hasMany', 'belongsToMany'].includes(v?.type))
?.map((v) => {