diff --git a/app/client/src/PluginActionEditor/components/PluginActionForm/components/UQIEditor/UQIEditorForm.tsx b/app/client/src/PluginActionEditor/components/PluginActionForm/components/UQIEditor/UQIEditorForm.tsx index 44750c91be..99f303d954 100644 --- a/app/client/src/PluginActionEditor/components/PluginActionForm/components/UQIEditor/UQIEditorForm.tsx +++ b/app/client/src/PluginActionEditor/components/PluginActionForm/components/UQIEditor/UQIEditorForm.tsx @@ -6,7 +6,6 @@ import { reduxForm } from "redux-form"; import { Flex } from "@appsmith/ads"; import { useGoogleSheetsSetDefaultProperty } from "./hooks/useGoogleSheetsSetDefaultProperty"; import { useFormData } from "./hooks/useFormData"; -import { useInitFormEvaluation } from "./hooks/useInitFormEvaluation"; const UQIEditorForm = () => { const { @@ -14,8 +13,6 @@ const UQIEditorForm = () => { plugin: { uiComponent }, } = usePluginActionContext(); - useInitFormEvaluation(); - // Set default values for Google Sheets useGoogleSheetsSetDefaultProperty(); diff --git a/app/client/src/PluginActionEditor/components/PluginActionForm/components/UQIEditor/hooks/useInitFormEvaluation.ts b/app/client/src/PluginActionEditor/components/PluginActionForm/components/UQIEditor/hooks/useInitFormEvaluation.ts deleted file mode 100644 index 5c52cdfa89..0000000000 --- a/app/client/src/PluginActionEditor/components/PluginActionForm/components/UQIEditor/hooks/useInitFormEvaluation.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { useEffect } from "react"; -import { initFormEvaluations } from "actions/evaluationActions"; -import { useDispatch } from "react-redux"; -import { usePluginActionContext } from "../../../../../PluginActionContext"; - -export const useInitFormEvaluation = () => { - const dispatch = useDispatch(); - - const { - action: { baseId }, - editorConfig, - settingsConfig, - } = usePluginActionContext(); - - useEffect( - function formEvaluationInit() { - dispatch(initFormEvaluations(editorConfig, settingsConfig, baseId)); - }, - [baseId, dispatch, editorConfig, settingsConfig], - ); -}; diff --git a/app/client/src/PluginActionEditor/components/PluginActionForm/hooks/useChangeActionCall.ts b/app/client/src/PluginActionEditor/components/PluginActionForm/hooks/useChangeActionCall.ts index 79b5be0f72..bd1eb8faa3 100644 --- a/app/client/src/PluginActionEditor/components/PluginActionForm/hooks/useChangeActionCall.ts +++ b/app/client/src/PluginActionEditor/components/PluginActionForm/hooks/useChangeActionCall.ts @@ -15,7 +15,7 @@ export const useChangeActionCall = () => { switch (plugin?.type) { case PluginType.API: - dispatch(changeApi(action?.id, false)); + dispatch(changeApi(action.id, false)); break; default: dispatch(