From bb9fb7ada268f8c6ae832a4dde286ec943bea975 Mon Sep 17 00:00:00 2001 From: Brandon Krigbaum Date: Tue, 20 Feb 2024 18:05:34 -0600 Subject: [PATCH] Fix getting of content types from input --- .../components/blocks/most-popular-list.marko | 2 +- .../components/blocks/most-popular.marko | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/marko-web-theme-monorail/components/blocks/most-popular-list.marko b/packages/marko-web-theme-monorail/components/blocks/most-popular-list.marko index 95b54c918..372be2a19 100644 --- a/packages/marko-web-theme-monorail/components/blocks/most-popular-list.marko +++ b/packages/marko-web-theme-monorail/components/blocks/most-popular-list.marko @@ -12,7 +12,7 @@ $ const getMostPopular = async () => { const uri = MOST_POPULAR_API_URI || 'https://most-popular-content.base.parameter1.com'; const tenant = site.get("p1events.tenant"); const realm = config.website("id"); - const contentTypes = getAsArray(input, 'input.includeContentTypes'); + const contentTypes = getAsArray(input, 'includeContentTypes'); const defaultUrl = `${uri}/retrieve?tenant=${tenant}&realm=${realm}`; const url = contentTypes.length ? `${defaultUrl}&types=${contentTypes.join(',')}` : defaultUrl; diff --git a/packages/marko-web-theme-monorail/components/blocks/most-popular.marko b/packages/marko-web-theme-monorail/components/blocks/most-popular.marko index 41b33c306..3a5e41237 100644 --- a/packages/marko-web-theme-monorail/components/blocks/most-popular.marko +++ b/packages/marko-web-theme-monorail/components/blocks/most-popular.marko @@ -13,7 +13,7 @@ $ const getMostPopular = async () => { const uri = MOST_POPULAR_API_URI || 'https://most-popular-content.base.parameter1.com'; const tenant = site.get("p1events.tenant"); const realm = config.website("id"); - const contentTypes = getAsArray(input, 'input.includeContentTypes'); + const contentTypes = getAsArray(input, 'includeContentTypes'); const defaultUrl = `${uri}/retrieve?tenant=${tenant}&realm=${realm}`; const url = contentTypes.length ? `${defaultUrl}&types=${contentTypes.join(',')}` : defaultUrl;