diff --git a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx index 2e08c77b6..78881d959 100644 --- a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx @@ -438,11 +438,7 @@ export default function ParameterComponent({ ) : left === true && type === "prompt" ? (
{ data.node = nodeClass; diff --git a/src/frontend/src/components/promptComponent/index.tsx b/src/frontend/src/components/promptComponent/index.tsx index 3fa41d279..18fd14361 100644 --- a/src/frontend/src/components/promptComponent/index.tsx +++ b/src/frontend/src/components/promptComponent/index.tsx @@ -24,7 +24,8 @@ export default function PromptAreaComponent({ }, [disabled]); useEffect(() => { - if (value !== "" && !editNode && !readonly) { + //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); diff --git a/src/frontend/src/modals/EditNodeModal/index.tsx b/src/frontend/src/modals/EditNodeModal/index.tsx index 7992d70f3..04042104e 100644 --- a/src/frontend/src/modals/EditNodeModal/index.tsx +++ b/src/frontend/src/modals/EditNodeModal/index.tsx @@ -438,12 +438,7 @@ const EditNodeModal = forwardRef(