mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 08:08:32 +00:00
Merge branch 'main' into next
This commit is contained in:
commit
12f76aed2c
@ -132,14 +132,14 @@ function getTypedConstantOption(type: string, types: UseTypeConstantType, fieldN
|
||||
)
|
||||
: allTypes
|
||||
).map((item) =>
|
||||
Object.keys(item).reduce(
|
||||
Object.keys(fieldNames).reduce(
|
||||
(result, key) =>
|
||||
fieldNames[key] in item
|
||||
key in item
|
||||
? Object.assign(result, {
|
||||
[fieldNames[key]]: item[key],
|
||||
})
|
||||
: result,
|
||||
item,
|
||||
{ ...item },
|
||||
),
|
||||
);
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user