From 44c0ba94857a7796026c6795c47e964126876d5a Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Sat, 15 Jun 2024 13:13:20 +0300 Subject: [PATCH] Depreacate `typeMatcher`s --- src/blocks/application.js | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/blocks/application.js b/src/blocks/application.js index 944ca9a3511..2f26f3195f8 100644 --- a/src/blocks/application.js +++ b/src/blocks/application.js @@ -242,14 +242,8 @@ export class Application { // Populate collections collections.forEach(collection => { - const { - snippetIds, - typeMatcher, - languageMatcher, - tagMatcher, - parent, - ...rest - } = collection; + const { snippetIds, languageMatcher, tagMatcher, parent, ...rest } = + collection; const collectionRec = Collection.createRecord({ parent, featuredIndex: featuredListings.indexOf(collection.id), @@ -264,11 +258,6 @@ export class Application { // Use publishedBy in other listings to include unlisted snippets in order // to allow for proper breadcrumbs to form for them let queryScope = 'publishedByPopularity'; - if (typeMatcher) - if (typeMatcher === 'article') { - queryScope = 'publishedByNew'; - queryMatchers.push(snippet => snippet.type !== 'snippet'); - } else queryMatchers.push(snippet => snippet.type === typeMatcher); if (languageMatcher) queryMatchers.push( snippet =>