From e39792819e553f2e944000b5b0302b3561b10429 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Tue, 19 Oct 2021 15:23:58 +0200 Subject: [PATCH] Update 0BDFDB.plugin.js --- Library/0BDFDB.plugin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/0BDFDB.plugin.js b/Library/0BDFDB.plugin.js index 9bb2872bdc..17cf52cd34 100644 --- a/Library/0BDFDB.plugin.js +++ b/Library/0BDFDB.plugin.js @@ -2210,7 +2210,6 @@ module.exports = (_ => { }; InternalBDFDB.checkEle = function (pluginDataObjs, ele, type, config) { pluginDataObjs = [pluginDataObjs].flat(10).filter(n => n); - let unmappedType = type.split(" _ _ ")[1] || type; let ins = BDFDB.ReactUtils.getInstance(ele); if (typeof config.specialFilter == "function") { let component = config.specialFilter(ins); @@ -2225,7 +2224,8 @@ module.exports = (_ => { } } else { - ins = BDFDB.ReactUtils.findConstructor(ins, "Channels") || BDFDB.ReactUtils.findConstructor(ins, "Channels", {up: true}) || ins; + let unmappedType = type.split(" _ _ ")[1] || type; + ins = BDFDB.ReactUtils.findConstructor(ins, unmappedType) || BDFDB.ReactUtils.findConstructor(ins, unmappedType, {up: true}) || ins; InternalBDFDB.patchComponent(pluginDataObjs, ins, type, config); BDFDB.PatchUtils.forceAllUpdates(pluginDataObjs.map(n => n.plugin), type); return true;