Skip to content

Commit

Permalink
Merge pull request #1351 from hlxsites/fix-null-cardlist
Browse files Browse the repository at this point in the history
fix for null in cardlist
  • Loading branch information
davenichols-DHLS authored Jan 16, 2025
2 parents bac2906 + 24d7728 commit 66faf20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/card-list/card-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export function createFilters(articles, viewAll = false) {
if (item[tagName]) {
return item[tagName].replace(/,\s*/g, ',').split(',');
}
return null;
return [];
});
const keywords = new Set([].concat(...allKeywords));
keywords.delete('');
Expand Down

0 comments on commit 66faf20

Please sign in to comment.