Explorar o código

Merge wzy

Next wzy
XieYongHong %!s(int64=3) %!d(string=hai) anos
pai
achega
d29b6df9fa
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/components/Metadata/ConfigParam/index.tsx

+ 1 - 1
src/components/Metadata/ConfigParam/index.tsx

@@ -29,7 +29,7 @@ const ConfigParam = (props: Props) => {
             'x-decorator': 'FormItem',
             // 判断type 类型
             'x-component': 'Select',
-            enum: i.type.elements.map((e) => ({
+            enum: i.type.elements?.map((e) => ({
               label: e.text,
               value: e.value,
             })),