Skip to content

Commit 01a1bfd

Browse files
committed
added changes for rule name
1 parent 164cab3 commit 01a1bfd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/core/base/rule.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -583,8 +583,8 @@ Rule.prototype.after = function after(result, options) {
583583
// only add the node property for the check.after so we can
584584
// look at which iframe a check result came from, but we don't
585585
// want it for the final results object
586-
if (check.id === 'sub-menu-metadata') {
587-
if (item.data.metaData) {
586+
if (check.id === 'menu-expand' || check.id === 'menu-popup') {
587+
if (item?.data?.metaData) {
588588
delete item.node;
589589
item.result = true;
590590
}
@@ -598,7 +598,7 @@ Rule.prototype.after = function after(result, options) {
598598
});
599599

600600
// Trying for sub-menu
601-
if (result.id === 'sub-menu-metadata') {
601+
if (result.id === 'menu-expand' || result.id === 'menu-popup') {
602602
const data = result.nodes.filter((r) => !r.all[0].result);
603603
data.forEach((r) => {
604604
const node = r.all[0].data;

0 commit comments

Comments
 (0)