diff --git a/studio/schemas/deskStructure.ts b/studio/schemas/deskStructure.ts index 023bad74c..cd2b9ae34 100644 --- a/studio/schemas/deskStructure.ts +++ b/studio/schemas/deskStructure.ts @@ -77,8 +77,8 @@ export default (S: StructureBuilder) => .icon(HeartIcon) .child( S.document() - .schemaType(salaryAndBenefitsId._root) - .documentId(salaryAndBenefitsId._root) + .schemaType(salaryAndBenefitsId) + .documentId(salaryAndBenefitsId) .title("Salary and Benefits"), ), ]); diff --git a/studio/schemas/documents/salaryAndBenefits.ts b/studio/schemas/documents/salaryAndBenefits.ts index 8c3bb4b7c..483d3d761 100644 --- a/studio/schemas/documents/salaryAndBenefits.ts +++ b/studio/schemas/documents/salaryAndBenefits.ts @@ -4,13 +4,10 @@ import seo from "../objects/seo"; import { title } from "../fields/text"; import { benefitId } from "./benefit"; -export const salaryAndBenefitsId = { - _root: "salaryAndBenefits", - showSalaryCalculator: "showSalaryCalculator", -}; +export const salaryAndBenefitsId = "salaryAndBenefits"; const salaryAndBenefits = defineType({ - name: salaryAndBenefitsId._root, + name: salaryAndBenefitsId, type: "document", title: "Salary and Benefits", fields: [ @@ -18,7 +15,7 @@ const salaryAndBenefits = defineType({ pageSlug, seo, defineField({ - name: salaryAndBenefitsId.showSalaryCalculator, + name: "showSalaryCalculator", title: "Show Salary Calculator", description: "Should the salary calculator be visible on the page?", type: "boolean",