refactor[promptComponent]: Remove unnused code
This commit is contained in:
parent
b156d68cac
commit
3249f0153e
1 changed files with 0 additions and 18 deletions
|
|
@ -39,24 +39,6 @@ export default function PromptAreaComponent({
|
||||||
}
|
}
|
||||||
}, [value, reactFlowInstance]);
|
}, [value, reactFlowInstance]);
|
||||||
|
|
||||||
// useEffect(() => {
|
|
||||||
// if (value !== "" && myValue !== value && reactFlowInstance) {
|
|
||||||
// // only executed once
|
|
||||||
// setMyValue(value);
|
|
||||||
// postValidatePrompt(field_name, value, nodeClass)
|
|
||||||
// .then((apiReturn) => {
|
|
||||||
// if (apiReturn.data) {
|
|
||||||
// setNodeClass(apiReturn.data.frontend_node);
|
|
||||||
// // need to update reactFlowInstance to re-render the nodes.
|
|
||||||
// reactFlowInstance.setEdges(
|
|
||||||
// _.cloneDeep(reactFlowInstance.getEdges())
|
|
||||||
// );
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
// .catch((error) => {});
|
|
||||||
// }
|
|
||||||
// }, [reactFlowInstance, field_name, myValue, nodeClass, setNodeClass, value]);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={disabled ? "pointer-events-none w-full " : " w-full"}>
|
<div className={disabled ? "pointer-events-none w-full " : " w-full"}>
|
||||||
<div className="flex w-full items-center">
|
<div className="flex w-full items-center">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue