From 850960fe359703afdc96e98f22629df95b4100aa Mon Sep 17 00:00:00 2001 From: Garrett Date: Thu, 28 Sep 2023 15:04:23 -0700 Subject: [PATCH] Fix encoder for arrays --- src/renderer/src/progress/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);