From e906007745c068d0cdfbbd8eebbc621784fedb65 Mon Sep 17 00:00:00 2001 From: Mikael Brevik Date: Thu, 12 Dec 2024 16:51:09 +0100 Subject: [PATCH] fix: hot spot for svv images --- studioShared/lib/queries/customerCases.ts | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/studioShared/lib/queries/customerCases.ts b/studioShared/lib/queries/customerCases.ts index f50ffc566..3d197165c 100644 --- a/studioShared/lib/queries/customerCases.ts +++ b/studioShared/lib/queries/customerCases.ts @@ -20,6 +20,7 @@ const CUSTOMER_CASE_BASE_FRAGMENT = groq` "basicTitleColorPart": ${translatedFieldFragment("basicTitleColorPart")}, "description": ${translatedFieldFragment("description")}, "image": image { + ..., ${INTERNATIONALIZED_IMAGE_FRAGMENT} }, "clientColors": { @@ -43,7 +44,10 @@ export const SPLIT_SECTIONS_FRAGMENT = groq` textBlockType, }, _type == "imageBlock" => { - "image": image {${INTERNATIONALIZED_IMAGE_FRAGMENT}}, + "image": image { + ..., + ${INTERNATIONALIZED_IMAGE_FRAGMENT} + }, fullWidth }, `; @@ -108,9 +112,12 @@ export const CUSTOMER_CASE_QUERY = groq` }, }, _type == "imageBlock" => { - "image": image {${INTERNATIONALIZED_IMAGE_FRAGMENT}}, - fullWidth + "image": image { + ..., + ${INTERNATIONALIZED_IMAGE_FRAGMENT} }, + fullWidth + }, }, "featuredCases": featuredCases[] -> { ${CUSTOMER_CASE_BASE_FRAGMENT}