mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-03 04:38:15 +08:00
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