fix: issue with SQL collection when the source collection is deleted
This commit is contained in:
parent
95bec2278f
commit
ad25fe704c
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user