From 8ebccbd1183eca7fa7f7e9dfd1e7d6a7634fe170 Mon Sep 17 00:00:00 2001 From: Mathias Oterhals Myklebust <24361490+mathiazom@users.noreply.github.com> Date: Wed, 18 Sep 2024 11:36:12 +0000 Subject: [PATCH] fix(compensations): preview title (#672) --- studio/schemas/documents/compensations.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/studio/schemas/documents/compensations.ts b/studio/schemas/documents/compensations.ts index c329b6cc4..703567b3b 100644 --- a/studio/schemas/documents/compensations.ts +++ b/studio/schemas/documents/compensations.ts @@ -38,12 +38,7 @@ const compensations = defineType({ ], preview: { select: { - title: "title", - }, - prepare({ title }) { - return { - title, - }; + title: title.name, }, }, });