Skip to content

Commit

Permalink
fir for null in cardlist
Browse files Browse the repository at this point in the history
  • Loading branch information
lakshmithi committed Jan 15, 2025
1 parent 7c7c5ec commit 24d7728
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 24d7728

Please sign in to comment.