From f8e4defdde029bbd47e31aed38103197b9eba5c4 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Thu, 7 Sep 2017 21:37:03 -0700 Subject: [PATCH] Remove extra values from skin image object --- js/skinParser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/skinParser.js b/js/skinParser.js index cff717c8..229da9d9 100644 --- a/js/skinParser.js +++ b/js/skinParser.js @@ -100,7 +100,7 @@ async function skinParser(zipFile) { ); // Merge all the objects into a single object. Tests assert that sprite keys are unique. - const images = imageObjs.reduce(Object.assign, {}); + const images = imageObjs.reduce((prev, img) => Object.assign(prev, img), {}); const viscolorContent = await genFileFromZip(zip, "VISCOLOR", "txt", "text"); const colors = viscolorContent