From 0580deda76e0159a06b79e621df213dd50eb355f Mon Sep 17 00:00:00 2001 From: Sol Irvine Date: Mon, 14 Aug 2023 21:54:08 +0900 Subject: [PATCH] wip: Saving work --- components/grid/three-items.tsx | 2 +- components/layout/menu/modal.tsx | 1 - lib/shopify/fragments/product.ts | 3 +++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/components/grid/three-items.tsx b/components/grid/three-items.tsx index df539ed89..c9f31bb73 100644 --- a/components/grid/three-items.tsx +++ b/components/grid/three-items.tsx @@ -7,7 +7,7 @@ import Label from '../label'; import { GridTileImage } from './tile'; function ThreeItemGridItem({ item, priority }: { item: Product; priority?: boolean }) { - const size = item?.variants?.[0]?.selectedOptions?.find((option) => option.name === 'size'); + const size = item?.variants?.[0]?.selectedOptions?.find((option) => option.name === 'Size'); return (
{currentDictionary?.menu?.contact} - contact
diff --git a/lib/shopify/fragments/product.ts b/lib/shopify/fragments/product.ts index 0d37d1627..4b608c4a4 100644 --- a/lib/shopify/fragments/product.ts +++ b/lib/shopify/fragments/product.ts @@ -28,6 +28,9 @@ const productFragment = /* GraphQL */ ` } } variants(first: 250) { + nodes { + id + } edges { node { id