diff --git a/src/frontend/src/components/promptComponent/index.tsx b/src/frontend/src/components/promptComponent/index.tsx index d136b2d8d..f5878af12 100644 --- a/src/frontend/src/components/promptComponent/index.tsx +++ b/src/frontend/src/components/promptComponent/index.tsx @@ -1,7 +1,6 @@ import { useEffect } from "react"; import { TypeModal } from "../../constants/enums"; -import { postValidatePrompt } from "../../controllers/API"; import GenericModal from "../../modals/genericModal"; import { PromptAreaComponentType } from "../../types/components"; import IconComponent from "../genericIconComponent"; @@ -23,18 +22,6 @@ export default function PromptAreaComponent({ } }, [disabled]); - useEffect(() => { - //prevent update from prompt template after group node if prompt is wrongly marked as not dynamic - if (value !== "" && !editNode && !readonly && !nodeClass?.flow) { - postValidatePrompt(field_name!, value, nodeClass!).then((apiReturn) => { - if (apiReturn.data) { - setNodeClass!(apiReturn.data.frontend_node); - // need to update reactFlowInstance to re-render the nodes. - } - }); - } - }, []); - return (