Skip to content

Commit 6e09cad

Browse files
committed
Fix data
1 parent d1611a7 commit 6e09cad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/pages/changelog/index.astro

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import { Steps } from "~/components";
1111
import { format } from "date-fns";
1212
import { getChangelogs } from "~/util/changelog";
1313
14-
const notes = await getChangelogs({});
15-
const test = notes.filter(x => !(x.data.hidden === true))
14+
const initialEntries = await getChangelogs({});
15+
const filteredEntries = initialEntries.filter(x => !(x.data.hidden === true))
1616
1717
const props = {
1818
frontmatter: {
@@ -26,9 +26,9 @@ const props = {
2626
---
2727

2828
<StarlightPage {...props}>
29-
<Header notes={notes} />
29+
<Header notes={filteredEntries} />
3030
{
31-
notes.map(async (entry, idx) => {
31+
filteredEntries.map(async (entry, idx) => {
3232
const date = format(entry.data.date, "MMM dd, yyyy");
3333

3434
const productIds = JSON.stringify(

0 commit comments

Comments
 (0)