From f4620e66e98f13cbbc7a9c339520c1736dacbf11 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Mon, 9 Sep 2019 11:39:21 +0200 Subject: [PATCH] Update BDFDB.max.js --- Plugins/BDFDB.max.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Plugins/BDFDB.max.js b/Plugins/BDFDB.max.js index 673ea91bf6..8f1fa86813 100644 --- a/Plugins/BDFDB.max.js +++ b/Plugins/BDFDB.max.js @@ -3215,7 +3215,8 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins ? BDFDB.myPlugins : {}, BDv2Api var result = [startchildren, -1]; for (let i in children) { var displayname = children[i] && children[i].type ? children[i].type.displayName || children[i].type.name || "" : ""; - if (names.some(name => displayname == name)) result = [children, i]; + var label = children[i] && children[i].props ? children[i].props.label || "" : ""; + if (names.some(name => displayname == name || label == name)) result = [children, i]; else if (children[i].props) result = search(children[i].props.children); if (result[1] > -1) break; }