diff --git a/src/client/Preview.tsx b/src/client/Preview.tsx index 7f0f905..8177a96 100644 --- a/src/client/Preview.tsx +++ b/src/client/Preview.tsx @@ -531,7 +531,9 @@ type FormProps = { parameters: ParameterWithSource[] }; const Form: FC = ({ parameters }) => { return parameters .sort((a, b) => a.order - b.order) - .map((p, index) => ); + // Since the form is sourced from constantly changing terraform, we are not sure + // if the parameters are the "same" as the previous render. + .map((p) => ); }; type FormElementProps = { parameter: ParameterWithSource }; @@ -542,9 +544,7 @@ const FormElement: FC = ({ parameter }) => { const value = useMemo( () => $form[parameter.name] ?? - (parameter.default_value.value === "??" - ? "" - : parameter.default_value.value), + undefined, [$form, parameter], );