Skip to content

Commit

Permalink
MWPW-167524-draft items fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Sonja Popovic committed Feb 21, 2025
1 parent 54199b6 commit f096085
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eds/components/PartnerCards.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getLibs } from '../scripts/utils.js';
import { getLibs, prodHosts } from '../scripts/utils.js';
import {
partnerCardsStyles,
partnerCardsLoadMoreStyles,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f096085

Please sign in to comment.