diff --git a/sanity/schemas/documents/page.ts b/sanity/schemas/documents/page.ts index 98a26a64..45c273d9 100644 --- a/sanity/schemas/documents/page.ts +++ b/sanity/schemas/documents/page.ts @@ -94,7 +94,7 @@ export default defineType({ }, preview: { select: { - imageUrl: 'asset.url', + media: 'asset', title: 'caption', }, }, diff --git a/sanity/schemas/documents/project.ts b/sanity/schemas/documents/project.ts index f72108a7..9d5740ad 100644 --- a/sanity/schemas/documents/project.ts +++ b/sanity/schemas/documents/project.ts @@ -131,7 +131,7 @@ export default defineType({ }, preview: { select: { - imageUrl: 'asset.url', + media: 'asset', title: 'caption', }, },