Aligned with upstream changes

This commit is contained in:
cond0r
2021-02-25 09:55:02 +02:00
parent d83367f257
commit f242f3c588
17 changed files with 77 additions and 47 deletions

View File

@@ -77,7 +77,7 @@ export function normalizeProduct(productNode: ShopifyProduct): any {
slug: handle?.replace(/^\/+|\/+$/g, ''),
price: money(priceRange?.minVariantPrice),
images: normalizeProductImages(images),
variants: variants ? normalizeProductVariants(variants) : null,
variants: variants ? normalizeProductVariants(variants) : [],
options: options ? options.map((o) => normalizeProductOption(o)) : [],
...rest,
}

View File

@@ -6,9 +6,6 @@ export const getAllPagesQuery = /* GraphQL */ `
id
title
handle
body
bodySummary
url
}
}
}

View File

@@ -7,7 +7,6 @@ export const getPageQuery = /* GraphQL */ `
title
handle
body
bodySummary
url
}
}