diff --git a/packages/core/client/src/collection-manager/templates/tree.tsx b/packages/core/client/src/collection-manager/templates/tree.tsx index 6c63a24fdf..4332814906 100644 --- a/packages/core/client/src/collection-manager/templates/tree.tsx +++ b/packages/core/client/src/collection-manager/templates/tree.tsx @@ -76,7 +76,7 @@ export class TreeCollectionTemplate extends CollectionTemplate { beforeSubmit(values) { if (Array.isArray(values?.fields)) { values?.fields.map((f) => { - if (!f.target) { + if (!f.target && ['belongsToMany', 'belongsTo', 'hasMany', 'hasOne'].includes(f.type)) { f.target = values.name; } });