fix: association-cascader should use fieldnames
This commit is contained in:
parent
c5e0301e3d
commit
80a53806bd
@ -36,7 +36,7 @@ const AssociationCascader = connect((props) => {
|
||||
const options = Object.entries(dict).map(([key, values]) => ({
|
||||
[fieldNames.label]: key,
|
||||
[fieldNames.value]: key,
|
||||
children: values.map((value) => ({ name: value, id: value })),
|
||||
children: values.map((value) => ({ [fieldNames.label]: value, [fieldNames.value]: value })),
|
||||
}));
|
||||
return options;
|
||||
}, [associationField, joinTitleField, titleField, data?.data]);
|
||||
|
Loading…
Reference in New Issue
Block a user