diff --git a/lib/plugin.js b/lib/plugin.js index f89f15f..a12ee44 100644 --- a/lib/plugin.js +++ b/lib/plugin.js @@ -173,7 +173,7 @@ const setupProgress = (axios) => { }) const onProgress = e => { - if (!currentRequests) { + if (!currentRequests || !e.total) { return } const progress = ((e.loaded * 100) / (e.total * currentRequests))