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

Function handleError

packages/ui/src/views/chatmessage/ChatMessage.jsx:843–852  ·  view source on GitHub ↗
(message = 'Oops! There seems to be an error. Please try again.')

Source from the content-addressed store, hash-verified

841 }
842
843 const handleError = (message = 'Oops! There seems to be an error. Please try again.') => {
844 message = message.replace(`Unable to parse JSON response from chat agent.\n\n`, '')
845 setMessages((prevMessages) => [...prevMessages, { message, type: 'apiMessage' }])
846 setLoading(false)
847 setUserInput('')
848 setUploadedFiles([])
849 setTimeout(() => {
850 inputRef.current?.focus()
851 }, 100)
852 }
853
854 const handlePromptClick = async (promptStarterInput) => {
855 setUserInput(promptStarterInput)

Callers 1

handleSubmitFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected