File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -694,22 +694,22 @@ const ui_builder = function () {
694
694
return buildViewAllPages ( headFootPromiseResults [ 0 ] , patternlab , styleguidePatterns ) . then ( allPatterns => {
695
695
696
696
//todo track down why we need to make this unique in the first place
697
- allPatterns = _ . uniq (
697
+ const uniquePatterns = _ . uniq (
698
698
_ . flatMapDeep ( allPatterns , ( pattern ) => {
699
699
return pattern ;
700
700
} )
701
701
) ;
702
702
703
703
//add the defaultPattern if we found one
704
704
if ( patternlab . defaultPattern ) {
705
- allPatterns . push ( patternlab . defaultPattern ) ;
705
+ uniquePatterns . push ( patternlab . defaultPattern ) ;
706
706
addToPatternPaths ( patternlab , patternlab . defaultPattern ) ;
707
707
}
708
708
709
709
//build the main styleguide page
710
710
return render ( Pattern . createEmpty ( { extendedTemplate : patternlab . viewAll } ) ,
711
711
{
712
- partials : allPatterns
712
+ partials : uniquePatterns
713
713
} , {
714
714
patternSection : patternlab . patternSection ,
715
715
patternSectionSubtype : patternlab . patternSectionSubType
You can’t perform that action at this time.
0 commit comments