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 and cbravobernal committed Nov 14, 2023
1 parent 7027c52 commit 5cfac55
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 5cfac55

Please sign in to comment.