From 6af25e4b16a50242445ef7ad5cd8bcb712a070f0 Mon Sep 17 00:00:00 2001 From: Mystikfluu Date: Mon, 5 Sep 2022 18:46:03 +0200 Subject: [PATCH] fix bug in dms --- js/dms.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/dms.js b/js/dms.js index 9904ae2..3a043c4 100644 --- a/js/dms.js +++ b/js/dms.js @@ -398,7 +398,7 @@ function removeDuplicates(a) { return a.filter(function(item) { let type = typeof item; if(type in prims) - return Object.prototype.hasOwnProperty.call(prims.type, item) ? false : (prims[type][item] = true); + return Object.prototype.hasOwnProperty.call(prims[type], item) ? false : (prims[type][item] = true); else return objs.indexOf(item) >= 0 ? false : objs.push(item); });