From 156bf7abcab6510fda0aeb6f668000537581dbd1 Mon Sep 17 00:00:00 2001 From: Mathias Oterhals Myklebust Date: Mon, 30 Sep 2024 07:59:35 +0200 Subject: [PATCH] fix(siteSettings): inline document id in groq query attempt to fix following error at build: > The error was caused by importing 'sanity/lib/index.mjs' in './studio/schemas/documents/siteSettings/brandAssets.ts'. --- studio/lib/queries/siteSettings.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/studio/lib/queries/siteSettings.ts b/studio/lib/queries/siteSettings.ts index 12f185523..99cab8822 100644 --- a/studio/lib/queries/siteSettings.ts +++ b/studio/lib/queries/siteSettings.ts @@ -1,10 +1,8 @@ import { groq } from "next-sanity"; -import { brandAssetsID } from "studio/schemas/documents/siteSettings/brandAssets"; - //Brand Assets export const BRAND_ASSETS_QUERY = groq` - *[_type == "${brandAssetsID}" && _id == "${brandAssetsID}"][0] + *[_type == "brandAssets" && _id == "brandAssets"][0] `; //Navigation Manager