diff --git a/src/renderer/src/progress/index.js b/src/renderer/src/progress/index.js index e7f21e3ab..b30fb5eb7 100644 --- a/src/renderer/src/progress/index.js +++ b/src/renderer/src/progress/index.js @@ -42,7 +42,7 @@ function decode(message) { function drill(o, callback) { if (o && typeof o === "object") { - const copy = { ...o }; + const copy = Array.isArray(o) ? [...o] : { ...o } ; for (let k in copy) copy[k] = drill(copy[k], callback); return copy; } else return callback(o);