mirror of
https://github.com/UiO-Gaming/uiogaming.no-backend.git
synced 2026-11-05 13:56:49 +01:00
fix author subtitle preview
This commit is contained in:
1 parent
77c406312c
commit
5dc213c9f5
2 files changed
+3
-3
No files matched your search
+3
-1
@@ -2,6 +2,7 @@ import {
|
||||
orderRankField,
|
||||
orderRankOrdering,
|
||||
} from "@sanity/orderable-document-list";
|
||||
import { baseLanguage } from "./localeStringType";
|
||||
|
||||
export default {
|
||||
name: "author",
|
||||
@@ -43,10 +44,11 @@ export default {
|
||||
},
|
||||
orderRankField({ type: "author" }),
|
||||
],
|
||||
orderings: [orderRankOrdering],
|
||||
preview: {
|
||||
select: {
|
||||
title: "name",
|
||||
subtitle: "title.$baseLanguage.id",
|
||||
subtitle: `role.${baseLanguage.id}`,
|
||||
media: "image",
|
||||
},
|
||||
},
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import {defineType, defineField} from 'sanity'
|
||||
|
||||
const supportedLanguages = [
|
||||
{ id: 'no', title: 'Norsk', isDefault: true },
|
||||
{ id: 'en', title: 'English' },
|
||||
|
||||
Reference in new issue
Block a user