fix: collection select no options (#2271)

This commit is contained in:
katherinehhh 2023-07-19 09:39:13 +08:00 committed by GitHub
parent d8529e1d06
commit 86749255ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,6 +100,7 @@ export const RemoteCollectionManagerProvider = (props: any) => {
if (uiSchema?.enum) { if (uiSchema?.enum) {
uiSchema.enum = uiSchema.enum.map((item) => ({ uiSchema.enum = uiSchema.enum.map((item) => ({
...item, ...item,
value: item?.value || item,
label: item.rawLabel ? item.label : t(item.label), label: item.rawLabel ? item.label : t(item.label),
rawLabel: item.rawLabel || item.label, rawLabel: item.rawLabel || item.label,
})); }));