Skip to content

Commit 7a14c09

Browse files
committed
chore(ui_builder): Fix lint
1 parent dec04fe commit 7a14c09

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/lib/ui_builder.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -694,22 +694,22 @@ const ui_builder = function () {
694694
return buildViewAllPages(headFootPromiseResults[0], patternlab, styleguidePatterns).then(allPatterns => {
695695

696696
//todo track down why we need to make this unique in the first place
697-
allPatterns = _.uniq(
697+
const uniquePatterns = _.uniq(
698698
_.flatMapDeep(allPatterns, (pattern) => {
699699
return pattern;
700700
})
701701
);
702702

703703
//add the defaultPattern if we found one
704704
if (patternlab.defaultPattern) {
705-
allPatterns.push(patternlab.defaultPattern);
705+
uniquePatterns.push(patternlab.defaultPattern);
706706
addToPatternPaths(patternlab, patternlab.defaultPattern);
707707
}
708708

709709
//build the main styleguide page
710710
return render(Pattern.createEmpty({extendedTemplate: patternlab.viewAll}),
711711
{
712-
partials: allPatterns
712+
partials: uniquePatterns
713713
}, {
714714
patternSection: patternlab.patternSection,
715715
patternSectionSubtype: patternlab.patternSectionSubType

0 commit comments

Comments
 (0)