@@ -38,7 +38,6 @@ interface Props {
color?: string;
addendum?: any;
saveValuesStatus?: string;
- externalValues?: any;
showStateDebugger?: boolean;
}
@@ -70,8 +70,13 @@ export const PorterFormContextProvider: React.FC<Props> = (props) => {
break;
case "update-field":
+ console.log("update field");
return {
...state,
+ variables: {
+ ...state.variables,
+ ...props.overrideVariables,
+ },
components: {
...state.components,
[action.id]: {
@@ -57,7 +57,6 @@ const PorterFormWrapper: React.FunctionComponent<PropsType> = ({
isInModal={isInModal}
color={color}
saveValuesStatus={saveValuesStatus}
- externalValues={externalValues}
/>
</PorterFormContextProvider>
)}
@@ -130,7 +130,6 @@ const KeyValueArray: React.FC<Props> = (props) => {
};
const renderEnvModal = () => {
- console.log(variables.namespace);
if (state.showEnvModal) {
return (
<Modal