Skip to content
Snippets Groups Projects
Commit 6d31427f authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire: Committed by Reiter, Christoph
Browse files

Prevent error message on aborted fetches (VPU/Apps/Library#9)

parent 1b14c8e5
No related branches found
No related tags found
No related merge requests found
...@@ -34,6 +34,11 @@ export const handleXhrError = (jqXHR, textStatus, errorThrown) => { ...@@ -34,6 +34,11 @@ export const handleXhrError = (jqXHR, textStatus, errorThrown) => {
* @param summary * @param summary
*/ */
export const handleFetchError = async (error, summary = "") => { export const handleFetchError = async (error, summary = "") => {
// return if user aborted the request
if (error.name === "AbortError") {
return;
}
let body; let body;
try { try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment