stuff
This commit is contained in:
parent
f7fd20198d
commit
a8f3028a9e
|
@ -3289,7 +3289,8 @@
|
|||
config.label = config.label && [config.label].flat().filter(n => n);
|
||||
config.id = config.id && [config.id].flat().filter(n => n);
|
||||
let contextMenu = BDFDB.ReactUtils.findChild(returnvalue, {props: "navId"});
|
||||
if (contextMenu) for (let i in contextMenu.props.children) {
|
||||
if (contextMenu) {
|
||||
for (let i in contextMenu.props.children) {
|
||||
if (contextMenu.props.children[i] && contextMenu.props.children[i].type == RealMenuItems.MenuGroup) {
|
||||
if (BDFDB.ArrayUtils.is(contextMenu.props.children[i].props.children)) {
|
||||
for (let j in contextMenu.props.children[i].props.children) if (check(contextMenu.props.children[i].props.children[j])) {
|
||||
|
@ -3307,6 +3308,8 @@
|
|||
}
|
||||
else if (check(contextMenu.props.children[i])) return [contextMenu.props.children, parseInt(i)];
|
||||
}
|
||||
return [contextMenu.props.children, -1];
|
||||
}
|
||||
return [null, -1];
|
||||
function check (child) {
|
||||
if (!child) return false;
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue