Skip to content

Commit

Permalink
fix(siteSettings): inline document id in groq query
Browse files Browse the repository at this point in the history
attempt to fix following error at build:
> The error was caused by importing 'sanity/lib/index.mjs' in './studio/schemas/documents/siteSettings/brandAssets.ts'.
  • Loading branch information
mathiazom committed Sep 30, 2024
1 parent fbf8886 commit 156bf7a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions studio/lib/queries/siteSettings.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 156bf7a

Please sign in to comment.