We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b310067 + cd8e707 commit 29390ecCopy full SHA for 29390ec
builder/patternlab.js
@@ -367,7 +367,7 @@ var entity_encoder = new he();
367
navViewAllSubItem.patternPartial = "viewall-" + pattern.patternGroup + "-" + pattern.patternSubGroup;
368
369
//check if we are moving to a new sub section in the next loop
370
- if (pattern.patternSubGroup !== patternlab.patterns[i + 1].patternSubGroup) {
+ if (!patternlab.patterns[i + 1] || pattern.patternSubGroup !== patternlab.patterns[i + 1].patternSubGroup) {
371
navItem.navSubItems.push(navViewAllSubItem);
372
navItem.navSubItemsIndex.push("View All");
373
}
0 commit comments