Skip to content

Commit 475a084

Browse files
committed
exclude hidden values
1 parent a23cc3b commit 475a084

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/ProductChangelog.astro

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ let rss: string;
2222
if ("product" in input) {
2323
rss = `/changelog/rss/${input.product.id}.xml`;
2424
filter = (e) => {
25-
return e.data.products.some(({ id }) => id === input.product.id);
25+
return !e.data.hidden && e.data.products.some(({ id }) => id === input.product.id);
2626
};
2727
} else {
2828
rss = `/changelog/rss/${slug(input.area)}.xml`;
@@ -33,7 +33,6 @@ if ("product" in input) {
3333
return e.data.products.some((x) => products.some((y) => x.id === y.id));
3434
};
3535
}
36-
console.log(rss)
3736
const changelogs = await getChangelogs({ filter });
3837
---
3938

0 commit comments

Comments
 (0)