Skip to content

Commit

Permalink
Correctly update Courses component
Browse files Browse the repository at this point in the history
  • Loading branch information
andreilgeorgescu authored Oct 28, 2024
1 parent 63f30b2 commit 6bb20c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/memberships/_sections/Courses.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Section from "@components/Section.astro";
import { getCollection, getEntry, type CollectionEntry } from "astro:content";
const courseSeriess = (await getCollection("seriess")).filter(
(series) => series.data.members[0].collection === "courses",
(series) => series?.data.members[0].collection === "courses",
);
const memberss = courseSeriess.map((series) => series.data.members);
const coursess = await Promise.all(
Expand All @@ -26,7 +26,7 @@ const courseList = coursess.reduce(
{
courseList.map((course) => (
<li class="col-span-1 flex justify-center divide-y rounded-lg bg-none">
<CourseCardVertical {course} showPrice={false} />
<CourseCardVertical {course} />
</li>
))
}
Expand Down

0 comments on commit 6bb20c0

Please sign in to comment.