Skip to content

Commit

Permalink
fix(vue): +data structure
Browse files Browse the repository at this point in the history
  • Loading branch information
magne4000 committed Jul 2, 2024
1 parent aa1db75 commit bc84c45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boilerplates/vue/files/pages/star-wars/index/+title.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import type { PageContext } from "vike/types";
import type { Data } from "./+data.js";

export function title(pageContext: PageContext<Data>) {
const movies = pageContext.data;
const movies = pageContext.data.data;
return `${movies.length} Star Wars Movies`;
}

0 comments on commit bc84c45

Please sign in to comment.