fix: cart error on first load

This commit is contained in:
cond0r 2021-02-04 16:18:01 +02:00
parent 9783537ca2
commit 2acc21164b
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,5 @@
import { checkoutDetailsFragment } from '../queries/get-checkout-query'
const checkoutCreateMutation = /* GraphQL */ `
mutation {
checkoutCreate(input: {}) {
@ -6,8 +8,7 @@ const checkoutCreateMutation = /* GraphQL */ `
field
}
checkout {
id
webUrl
${checkoutDetailsFragment}
}
}
}

View File

@ -19,7 +19,10 @@ export const checkoutDetailsFragment = /* GraphQL */ `
sku
title
image {
src
originalSrc
altText
width
height
}
price
}