From f0960859adf6ab28181d5eefbe4ed7479a93d8bd Mon Sep 17 00:00:00 2001 From: Sonja Popovic Date: Fri, 21 Feb 2025 15:18:30 +0100 Subject: [PATCH] MWPW-167524-draft items fix --- eds/components/PartnerCards.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eds/components/PartnerCards.js b/eds/components/PartnerCards.js index bd2c234..b276eea 100644 --- a/eds/components/PartnerCards.js +++ b/eds/components/PartnerCards.js @@ -1,4 +1,4 @@ -import { getLibs } from '../scripts/utils.js'; +import { getLibs, prodHosts } from '../scripts/utils.js'; import { partnerCardsStyles, partnerCardsLoadMoreStyles, @@ -226,7 +226,7 @@ export default class PartnerCards extends LitElement { const cardsEvent = new Event('partner-cards-loaded'); document.dispatchEvent(cardsEvent); if (apiData?.cards) { - if (window.location.hostname === 'partners.adobe.com') { + if (prodHosts.includes(window.location.host)) { apiData.cards = apiData.cards.filter((card) => !card.contentArea.url?.includes('/drafts/')); } // eslint-disable-next-line no-return-assign