Add product description html (#274)

This commit is contained in:
cond0r
2021-04-15 18:35:31 +03:00
committed by GitHub
parent d838f34c73
commit 0b715c2dd2
5 changed files with 7 additions and 6 deletions

View File

@@ -21,11 +21,10 @@ const getProduct = async (options: {
const { data }: GraphQLFetcherResult = await config.fetch(getProductQuery, {
variables,
})
const { productByHandle: product } = data
const { productByHandle } = data
return {
product: product ? normalizeProduct(product) : null,
product: productByHandle ? normalizeProduct(productByHandle) : null,
}
}