Skip to content

Commit

Permalink
fix(index): use renamed meta
Browse files Browse the repository at this point in the history
  • Loading branch information
chohner committed Jan 10, 2025
1 parent a9243dd commit 9237cbf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/routes/_index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import PageContent from "~/components/PageContent";
import { fetchPage } from "~/services/cms/index.server";

export const loader = async () => {
return json(await fetchPage("/"));
const { pageMeta, ...props } = await fetchPage("/");
return json({ ...props, meta: pageMeta });
};

export default function Index() {
Expand Down

0 comments on commit 9237cbf

Please sign in to comment.