FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

revert: don't flatten folders containing only one item inside · pattern-lab/patternlab-node@77f1f46 · GitHub

This repository was archived by the owner on May 13, 2026. It is now read-only.

Commit 77f1f46

Browse files
committed
revert: don't flatten folders containing only one item inside
1 parent aea1c7f commit 77f1f46

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/uikit-workshop/src/scripts/components/pl-nav

‎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 > 1 && (
55+
{nonViewAllItems.length >= 1 && (
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 > 1) ||
78+
{((viewAllItems.length > 0 && nonViewAllItems.length >= 1) ||
7979
viewAllItems.length === 0) && (
8080
<ol
8181
id={category}

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL