Skip to content

Commit f903b21

Browse files
committed
refactor: minor JS cleanup
1 parent 40fa88b commit f903b21

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/uikit-workshop/dist/styleguide/js/patternlab-viewer.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/uikit-workshop/src/scripts/components/pl-nav/pl-nav.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const SubSubList = props => {
5252
)}
5353
</a>
5454

55-
{nonViewAllItems.length > 0 && (
55+
{nonViewAllItems.length && (
5656
<SpecialButton
5757
aria-controls={category}
5858
onClick={elem.toggleSpecialNavPanel}
@@ -75,7 +75,7 @@ const SubSubList = props => {
7575
</Button>
7676
)}
7777

78-
{((viewAllItems.length > 0 && nonViewAllItems.length > 0) ||
78+
{((viewAllItems.length && nonViewAllItems.length) ||
7979
viewAllItems.length === 0) && (
8080
<ol
8181
id={category}

0 commit comments

Comments
 (0)