Skip to content

Commit cf2c7ab

Browse files
committed
fix: fix issue with portfolio click going to undefined
1 parent 6c4d673 commit cf2c7ab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/pages/index.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
import { getCollection } from "astro:content";
33
import DefaultPageLayout from "layouts/default.astro";
4-
import { PortfolioFrontmatter } from "types/frontmatter";
4+
import { type PortfolioFrontmatter } from "types/frontmatter";
55
import { Education } from "~/components/app/home/sections/Education";
66
import { Hero } from "~/components/app/home/sections/Hero";
77
import { TechnicalSkills } from "~/components/app/home/sections/TechnicalSkills";
@@ -20,7 +20,7 @@ const portfolioItems = await getCollection("portfolio");
2020
<Education />
2121
<PortfolioShowcase
2222
items={portfolioItems.map(
23-
(item) => ({ ...item.data, slug: item.slug } as PortfolioFrontmatter)
23+
(item) => ({ ...item.data, slug: item.id } as PortfolioFrontmatter)
2424
)}
2525
/>
2626
</DefaultPageLayout>

0 commit comments

Comments
 (0)