Mapped options to variants

This commit is contained in:
royderks
2021-04-29 18:27:36 +02:00
committed by Zaiste
parent f7796b9683
commit 85d203e85c
3 changed files with 36 additions and 28 deletions

View File

@@ -22,10 +22,8 @@ const getProduct = async (options: {
variables,
})
const { product } = data
return {
product: product ? normalizeProduct(product) : null,
product: data?.product ? normalizeProduct(data.product) : null,
}
}