mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-02 04:07:50 +08:00
fix: tree collection target error (#4105)
This commit is contained in:
parent
1bacd00739
commit
d24c30a7f8
@ -67,7 +67,9 @@ export class TreeCollectionTemplate extends CollectionTemplate {
|
||||
beforeSubmit(values) {
|
||||
if (Array.isArray(values?.fields)) {
|
||||
values?.fields.map((f) => {
|
||||
f.target = values.name;
|
||||
if (!f.target) {
|
||||
f.target = values.name;
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user