From 683a503e8e26a2db47d6692226234475569d1a40 Mon Sep 17 00:00:00 2001 From: lowercasedonkey <lowercasedonkey@gmail.com> Date: Sat, 7 Mar 2020 00:10:53 -0500 Subject: [PATCH] fix --- src/data/backwardsCompatibility/backwardsCompatibility.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/data/backwardsCompatibility/backwardsCompatibility.js b/src/data/backwardsCompatibility/backwardsCompatibility.js index 45753b64981..4ca3c240c98 100644 --- a/src/data/backwardsCompatibility/backwardsCompatibility.js +++ b/src/data/backwardsCompatibility/backwardsCompatibility.js @@ -40,7 +40,9 @@ App.Update.setNonexistantProperties = function(obj, props) { App.Update.setExistantProperties = function(obj, array) { for (let p in array) { - if (typeof array[p] === "object" && typeof array[p] !== undefined) { + if (Array.isArray(array[p])){ + obj[p] = Array.from(array[p]); + } else if (typeof array[p] === "object" && typeof array[p] !== undefined) { console.log("forcing V." + p + " to ", array[p]); obj[p] = {}; Object.assign(obj[p], array[p]); -- GitLab