From 16292376f466c45e721b7d193b7694cd0630bb1a Mon Sep 17 00:00:00 2001 From: Mathias Oterhals Myklebust Date: Wed, 18 Sep 2024 13:23:47 +0200 Subject: [PATCH] fix(compensations): preview title --- 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, }, }, });