MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / onSubmitResponse

Function onSubmitResponse

packages/ui/src/views/chatmessage/ChatMessage.jsx:865–876  ·  view source on GitHub ↗
(actionData, feedback = '', type = '')

Source from the content-addressed store, hash-verified

863 }
864
865 const onSubmitResponse = (actionData, feedback = '', type = '') => {
866 let fbType = feedbackType
867 if (type) {
868 fbType = type
869 }
870 const question = feedback ? feedback : fbType.charAt(0).toUpperCase() + fbType.slice(1)
871 handleSubmit(undefined, question, undefined, {
872 type: fbType,
873 startNodeId: actionData?.nodeId,
874 feedback
875 })
876 }
877
878 const handleSubmitFeedback = () => {
879 if (pendingActionData) {

Callers 2

handleSubmitFeedbackFunction · 0.70
handleActionClickFunction · 0.70

Calls 1

handleSubmitFunction · 0.70

Tested by

no test coverage detected