We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76c054f commit 5fd0d34Copy full SHA for 5fd0d34
src/components/changelog-next/Header.astro
@@ -19,7 +19,9 @@ async function uniqueProducts(
19
) {
20
const products = entries?.flatMap((entry) => entry.data.products ?? []);
21
22
- const unique = [...new Set(products)];
+ const unique = [
23
+ ...new Map(products.map((product) => [product.id, product])).values(),
24
+ ];
25
26
return Promise.all(
27
unique.map(async (product) => {
0 commit comments