Przeglądaj źródła

respected updated namespace

jusrhee 4 lat temu
rodzic
commit
49f32daa0b

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

@@ -38,7 +38,6 @@ interface Props {
   color?: string;
   color?: string;
   addendum?: any;
   addendum?: any;
   saveValuesStatus?: string;
   saveValuesStatus?: string;
-  externalValues?: any;
   showStateDebugger?: boolean;
   showStateDebugger?: boolean;
 }
 }
 
 

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

@@ -70,8 +70,13 @@ export const PorterFormContextProvider: React.FC<Props> = (props) => {
         }
         }
         break;
         break;
       case "update-field":
       case "update-field":
+        console.log("update field");
         return {
         return {
           ...state,
           ...state,
+          variables: {
+            ...state.variables,
+            ...props.overrideVariables,
+          },
           components: {
           components: {
             ...state.components,
             ...state.components,
             [action.id]: {
             [action.id]: {

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

@@ -57,7 +57,6 @@ const PorterFormWrapper: React.FunctionComponent<PropsType> = ({
             isInModal={isInModal}
             isInModal={isInModal}
             color={color}
             color={color}
             saveValuesStatus={saveValuesStatus}
             saveValuesStatus={saveValuesStatus}
-            externalValues={externalValues}
           />
           />
         </PorterFormContextProvider>
         </PorterFormContextProvider>
       )}
       )}

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

@@ -130,7 +130,6 @@ const KeyValueArray: React.FC<Props> = (props) => {
   };
   };
 
 
   const renderEnvModal = () => {
   const renderEnvModal = () => {
-    console.log(variables.namespace);
     if (state.showEnvModal) {
     if (state.showEnvModal) {
       return (
       return (
         <Modal
         <Modal