From ea4bb83a3ce6301b92b440c17cdea3bb2751475b Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Fri, 29 Jan 2021 11:41:27 +0100 Subject: [PATCH] Update 0BDFDB.plugin.js --- Library/0BDFDB.plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/0BDFDB.plugin.js b/Library/0BDFDB.plugin.js index 767d03e888..ecbf7f9232 100644 --- a/Library/0BDFDB.plugin.js +++ b/Library/0BDFDB.plugin.js @@ -315,7 +315,7 @@ module.exports = (_ => { BDFDB.ObjectUtils.mirror = function (obj) { if (!BDFDB.ObjectUtils.is(obj)) return {}; let newObj = Object.assign({}, obj); - for (let key in newObj) newObj[newObj[key]] = key; + for (let key in newObj) if (newObj[newObj[key]] == undefined && (typeof key == "number" || typeof key == "string")) newObj[newObj[key]] = key; return newObj; };