Skip to content

Commit

Permalink
fix(instance) ensure yaml form updates after saving changed yaml and …
Browse files Browse the repository at this point in the history
…resets on cancelling changes in the yaml editor

Signed-off-by: David Edler <[email protected]>
  • Loading branch information
edlerd committed Apr 30, 2024
1 parent 77f27b3 commit c9d3cc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/instances/EditInstance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ const EditInstance: FC<Props> = ({ instance }) => {

{section === slugify(YAML_CONFIGURATION) && (
<YamlForm
key={`yaml-form-${formik.values.readOnly}`}
key={`yaml-form-${formik.values.readOnly}-${getYaml()}`}
yaml={getYaml()}
setYaml={(yaml) => void formik.setFieldValue("yaml", yaml)}
readOnly={readOnly}
Expand Down

0 comments on commit c9d3cc6

Please sign in to comment.