Skip to content

Commit

Permalink
Fix link to media
Browse files Browse the repository at this point in the history
  • Loading branch information
dani-mp committed Nov 28, 2024
1 parent fa0a37c commit 1f8b5b7
Show file tree
Hide file tree
Showing 2 changed files with 1,425 additions and 1,539 deletions.
2 changes: 1 addition & 1 deletion src/lib/buildFieldProperties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ function buildFieldProperty(
}

case "media": {
code = addLine(`${name}: prismic.LinkField;`, code);
code = addLine(`${name}: prismic.LinkToMediaField;`, code);
break;
}

Expand Down
Loading

0 comments on commit 1f8b5b7

Please sign in to comment.