Commit a380f8a6 authored by Joel's avatar Joel

fix: user cancel query show error message

parent b91e2260
......@@ -340,7 +340,9 @@ export const ssePost = (url: string, fetchOptions: any, { isPublicAPI = false, o
onData?.(str, isFirstMessage, moreInfo)
}, onCompleted)
}).catch((e) => {
if (e.toString() !== 'AbortError: The user aborted a request.')
Toast.notify({ type: 'error', message: e })
onError?.(e)
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment