Skip to content

Commit

Permalink
fix(progress): handle canceled requests (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogobbosouza authored and pi0 committed Oct 22, 2019
1 parent 709bd7c commit 5096060
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ const setupProgress = (axios, ctx) => {
}

currentRequests--

if (axios.isCancel(error)) {
return
}

$loading().fail()
$loading().finish()
})
Expand Down

0 comments on commit 5096060

Please sign in to comment.