Skip to content

Commit

Permalink
Fix encoder for arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettmflynn committed Sep 28, 2023
1 parent 4a1aeb7 commit 850960f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/src/progress/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 850960f

Please sign in to comment.