diff --git a/studio/lib/queries/page.ts b/studio/lib/queries/page.ts index d25aa3e05..75a300223 100644 --- a/studio/lib/queries/page.ts +++ b/studio/lib/queries/page.ts @@ -77,7 +77,7 @@ export const SLUG_QUERY = groq` `; export const SEO_SLUG_QUERY = groq` - *[_type == "pageBuilder" && slug.current == $slug][0]{ + *[defined(seo) && slug.current == $slug][0]{ "title": seo.seoTitle, "description": seo.seoDescription, "imageUrl": seo.seoImage.asset->url