fix: make sending a message not change the value of chatinput node (#5103)
Removed attribution of message sent to the Chat Input node
This commit is contained in:
parent
dc0291fa8f
commit
a07907f695
1 changed files with 0 additions and 10 deletions
|
|
@ -14,7 +14,6 @@ import useFlowStore from "../../stores/flowStore";
|
|||
import useFlowsManagerStore from "../../stores/flowsManagerStore";
|
||||
import { useMessagesStore } from "../../stores/messagesStore";
|
||||
import { IOModalPropsType } from "../../types/components";
|
||||
import { NodeType } from "../../types/flow";
|
||||
import { cn } from "../../utils/utils";
|
||||
import BaseModal from "../baseModal";
|
||||
import IOFieldView from "./components/IOFieldView";
|
||||
|
|
@ -166,15 +165,6 @@ export default function IOModal({
|
|||
}
|
||||
// refetch();
|
||||
setLockChat(false);
|
||||
if (chatInput) {
|
||||
setNode(chatInput.id, (node: NodeType) => {
|
||||
const newNode = { ...node };
|
||||
if (newNode.data.node?.template) {
|
||||
newNode.data.node!.template["input_value"].value = chatValue;
|
||||
}
|
||||
return newNode;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue