From c9b8f0b6aa61ce2ff991b8ae519abcf3aaa3dfd8 Mon Sep 17 00:00:00 2001 From: Mathias Oterhals Myklebust Date: Wed, 4 Sep 2024 15:53:54 +0200 Subject: [PATCH] refactor(companyLocation): define company location as type, not field --- studio/schemas/documents/companyLocations.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/studio/schemas/documents/companyLocations.ts b/studio/schemas/documents/companyLocations.ts index 3b11ac541..cfc5f1ce2 100644 --- a/studio/schemas/documents/companyLocations.ts +++ b/studio/schemas/documents/companyLocations.ts @@ -1,9 +1,9 @@ -import { defineField } from "sanity"; +import { defineField, defineType } from "sanity"; export const companyLocationsID = "companyLocations"; export const companyLocationID = "companyLocation"; -const companyLocations = defineField({ +const companyLocations = defineType({ name: companyLocationsID, type: "document", title: "Location",