Skip to content

Commit

Permalink
Templates: Update filter to call all of the individual methods (#55980)
Browse files Browse the repository at this point in the history
  • Loading branch information
glendaviesnz authored Nov 9, 2023
1 parent 9644141 commit 6340800
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ function preparePatterns( patterns, template, currentThemeStylesheet ) {

return patterns
.filter(
filterOutExcludedPatternSources &&
filterOutDuplicatesByName &&
filterCompatiblePatterns
( pattern, index, items ) =>
filterOutExcludedPatternSources( pattern ) &&
filterOutDuplicatesByName( pattern, index, items ) &&
filterCompatiblePatterns( pattern )
)
.map( ( pattern ) => ( {
...pattern,
Expand Down

0 comments on commit 6340800

Please sign in to comment.