Skip to content

Commit 3ce13ab

Browse files
fix(core): Subgroup cannot be hidden (#1368)
1 parent 7495275 commit 3ce13ab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/core/src/lib/ui_builder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ const ui_builder = function () {
102102
// this pattern is contained with a directory documented as hidden (a handy way to hide whole directories from the nav
103103
isOmitted =
104104
(pattern.patternGroupData && pattern.patternGroupData.hidden) ||
105-
(pattern.patternSubGroupData && pattern.patternSubGroupData.hidden) ||
105+
(pattern.patternSubgroupData && pattern.patternSubgroupData.hidden) ||
106106
// TODO: Remove next two lines when removing support & deprecation waring for underscore prefix hiding
107107
pattern.relPath.charAt(0) === '_' ||
108108
pattern.relPath.indexOf(path.sep + '_') > -1;

packages/core/test/ui_builder_tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ tap.test(
145145
patternPartial: 'shown-foo',
146146
});
147147

148-
pattern.patternSubGroupData = {
148+
pattern.patternSubgroupData = {
149149
hidden: true,
150150
};
151151

0 commit comments

Comments
 (0)