Skip to content

Commit

Permalink
Make people variable optional
Browse files Browse the repository at this point in the history
  • Loading branch information
echus committed Jan 23, 2024
1 parent 07b1106 commit 47f055a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/people/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Person from "../../layouts/Person.astro";
export async function getStaticPaths() {
const people = await getCollection("people");
console.log("people", people);
return people.map((person) => ({
return people?.map((person) => ({
params: { slug: person.slug },
props: person,
}));
Expand Down

0 comments on commit 47f055a

Please sign in to comment.