mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 06:55:50 +00:00
fix(client): fix field names of variable input (#5128)
This commit is contained in:
parent
ffcc60cadf
commit
eaf23766c7
@ -132,14 +132,14 @@ function getTypedConstantOption(type: string, types: UseTypeConstantType, fieldN
|
|||||||
)
|
)
|
||||||
: allTypes
|
: allTypes
|
||||||
).map((item) =>
|
).map((item) =>
|
||||||
Object.keys(item).reduce(
|
Object.keys(fieldNames).reduce(
|
||||||
(result, key) =>
|
(result, key) =>
|
||||||
fieldNames[key] in item
|
key in item
|
||||||
? Object.assign(result, {
|
? Object.assign(result, {
|
||||||
[fieldNames[key]]: item[key],
|
[fieldNames[key]]: item[key],
|
||||||
})
|
})
|
||||||
: result,
|
: result,
|
||||||
item,
|
{ ...item },
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user