Skip to content

Commit fe3aac3

Browse files
authored
Merge pull request #1129 from t14/patch-1
Error when creating new blog post
2 parents 22bc1d9 + bfbea20 commit fe3aac3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/blog/[...slug]/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export async function generateMetadata(props: {
4545
}
4646
const ogImages = imageList.map((img) => {
4747
return {
48-
url: img.includes('http') ? img : siteMetadata.siteUrl + img,
48+
url: img && img.includes('http') ? img : siteMetadata.siteUrl + img,
4949
}
5050
})
5151

0 commit comments

Comments
 (0)