Merge branch 'main' into next

This commit is contained in:
GitHub Actions Bot 2024-08-26 07:43:43 +00:00
commit 12f76aed2c

View File

@ -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 {