浏览代码

react moment

Ivan Galakhov 4 年之前
父节点
当前提交
f51c612499

+ 1 - 0
dashboard/src/components/form-refactor/PorterFormContextProvider.tsx

@@ -231,6 +231,7 @@ export const PorterFormContextProvider: React.FC<Props> = (props) => {
                       type: "key-value-array",
                       secretOption: true,
                       envLoader: true,
+                      fileUpload: true,
                       settings: {
                         type: "env",
                       },

+ 1 - 0
dashboard/src/components/form-refactor/field-components/KeyValueArray.tsx

@@ -18,6 +18,7 @@ interface Props extends KeyValueArrayField {
 }
 
 const KeyValueArray: React.FC<Props> = (props) => {
+  console.log(props);
   const { state, setState, variables } = useFormField<KeyValueArrayFieldState>(
     props.id,
     {