Skip to content

Commit dd706c1

Browse files
committed
fix: remove sync operation of gui view model on unmount
1 parent 38fe173 commit dd706c1

File tree

1 file changed

+0
-11
lines changed
  • src/Pages/Applications/DevtronApps/Details/AppConfigurations/MainContent/DeploymentTemplate/GUIView

1 file changed

+0
-11
lines changed

src/Pages/Applications/DevtronApps/Details/AppConfigurations/MainContent/DeploymentTemplate/GUIView/GUIView.component.tsx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import {
2626
HIDE_SUBMIT_BUTTON_UI_SCHEMA,
2727
OverrideMergeStrategyType,
2828
GUIViewError,
29-
YAMLStringify,
3029
ToastManager,
3130
ToastVariantType,
3231
} from '@devtron-labs/devtron-fe-common-lib'
@@ -92,16 +91,6 @@ const GUIView = ({
9291
}
9392
}, [value, guiSchema])
9493

95-
useEffect(
96-
() => () => {
97-
if (modelRef.current) {
98-
const newData = modelRef.current.syncCheckedFieldsInJson(formDataRef.current)
99-
editorOnChange(newData ? YAMLStringify(newData, { simpleKeys: true }) : '')
100-
}
101-
},
102-
[],
103-
)
104-
10594
const state: GUIViewState = useMemo(() => {
10695
if (invalidGUISchemaError) {
10796
return { error: invalidGUISchemaError } as GUIViewState

0 commit comments

Comments
 (0)