Skip to content

Commit ce0d1d7

Browse files
fix: update function
1 parent 11510a1 commit ce0d1d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/next/pages/foos/[id]/edit.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
4141

4242
export const getStaticPaths: GetStaticPaths = async() => {
4343
const response = await fetch("/{{{name}}}");
44-
const paths= getPathsFromHydraResponse(response,true);
44+
const paths= await getPathsFromHydraResponse(response,true);
4545
return {
4646
paths,
4747
fallback:true

templates/next/pages/foos/[id]/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const getStaticProps: GetStaticProps = async ({ params }) => {
4545
}
4646
export const getStaticPaths: GetStaticPaths = async() => {
4747
const response = await fetch("/{{{name}}}");
48-
const paths= getPathsFromHydraResponse(response,false);
48+
const paths= await getPathsFromHydraResponse(response,false);
4949
return {
5050
paths,
5151
fallback:true

0 commit comments

Comments
 (0)