Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MWPW-156259 - arbitrary without key or value #35

Merged
merged 2 commits into from
Aug 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions edsdme/blocks/announcements/announcements.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ export default async function init(el) {
const block = {
el,
collectionTag: '"caas:adobe-partners/collections/announcements"',
ietf: config.locale.ietf
}
ietf: config.locale.ietf,
};

const blockData = {
localizedText,
Expand Down
3 changes: 3 additions & 0 deletions edsdme/components/PartnerCards.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ export default class PartnerCards extends LitElement {
throw new Error(`HTTP error! Status: ${response.status}`);
}
apiData = await response.json();
const cardsEvent = new Event('partner-cards-loaded');
document.dispatchEvent(cardsEvent);
if (apiData?.cards) {
if (window.location.hostname === 'partners.adobe.com') {
apiData.cards = apiData.cards.filter((card) => !card.contentArea.url?.includes('/drafts/'));
Expand Down Expand Up @@ -524,6 +526,7 @@ export default class PartnerCards extends LitElement {
}
// eslint-disable-next-line consistent-return
return selectedFiltersKeys.every((key) => cardArbitraryArr.some((arbitraryTag) => {
if (!arbitraryTag.value || !arbitraryTag.key) return false;
const arbitraryTagKeyStr = arbitraryTag.key.trim().toLowerCase().replaceAll(' ', '-');
const arbitraryTagValueStr = arbitraryTag.value.trim().toLowerCase().replaceAll(' ', '-');
if (key === arbitraryTagKeyStr) {
Expand Down
2 changes: 1 addition & 1 deletion edsdme/components/PartnerCardsStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ export const partnerCardsStyles = css`
@media screen and (max-width: 1200px) {
.all-filters-wrapper-mobile.open {
position: fixed;
z-index: 10;
z-index: 10000000;
display: flex;
flex-direction: column;
width: 100%;
Expand Down
Loading