From 3b6d6d4607844cbe618b6f23da54132d881b4c85 Mon Sep 17 00:00:00 2001 From: Ken Jones Date: Mon, 2 Dec 2024 16:24:22 -0600 Subject: [PATCH] Fix the image preview in the Portable Text Editor. (#302) --- sanity/schemas/documents/page.ts | 2 +- sanity/schemas/documents/project.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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', }, },