diff --git a/studioShared/lib/interfaces/customerCases.ts b/studioShared/lib/interfaces/customerCases.ts index 431796f47..854530d22 100644 --- a/studioShared/lib/interfaces/customerCases.ts +++ b/studioShared/lib/interfaces/customerCases.ts @@ -1,5 +1,3 @@ -import { PortableTextBlock } from "sanity"; - import { IImage } from "studio/lib/interfaces/media"; export interface CustomerCaseProjectInfo { @@ -21,6 +19,5 @@ export interface CustomerCaseBase { export interface CustomerCase extends CustomerCaseBase { image: IImage; - richText: PortableTextBlock[]; projectInfo: CustomerCaseProjectInfo; } diff --git a/studioShared/lib/queries/customerCases.ts b/studioShared/lib/queries/customerCases.ts index 98ab66bbf..65f631473 100644 --- a/studioShared/lib/queries/customerCases.ts +++ b/studioShared/lib/queries/customerCases.ts @@ -28,7 +28,6 @@ export const CUSTOMER_CASE_QUERY = groq` "image": image { ${INTERNATIONALIZED_IMAGE_FRAGMENT} }, - "richText": ${translatedFieldFragment("richText")}, "projectInfo": projectInfo { customer, "name": ${translatedFieldFragment("name")}, diff --git a/studioShared/schemas/documents/customerCase.ts b/studioShared/schemas/documents/customerCase.ts index 1f0ff2abf..f3ddfe95a 100644 --- a/studioShared/schemas/documents/customerCase.ts +++ b/studioShared/schemas/documents/customerCase.ts @@ -2,7 +2,7 @@ import { defineField, defineType } from "sanity"; import { isInternationalizedString } from "studio/lib/interfaces/global"; import { internationalizedImage } from "studio/schemas/fields/media"; -import { richTextID, titleID } from "studio/schemas/fields/text"; +import { titleID } from "studio/schemas/fields/text"; import { titleSlug } from "studio/schemas/schemaTypes/slug"; import { firstTranslation } from "studio/utils/i18n"; import { customerCaseProjectInfo } from "studioShared/schemas/fields/customerCaseProjectInfo"; @@ -50,11 +50,6 @@ const customerCase = defineType({ type: "array", of: [richTextBlock, imageBlock], }), - defineField({ - name: richTextID, - title: "Body", - type: "internationalizedArrayRichText", - }), ], preview: { select: {