forked from crowetic/commerce
fix: cart error on first load
This commit is contained in:
parent
9783537ca2
commit
2acc21164b
@ -1,3 +1,5 @@
|
|||||||
|
import { checkoutDetailsFragment } from '../queries/get-checkout-query'
|
||||||
|
|
||||||
const checkoutCreateMutation = /* GraphQL */ `
|
const checkoutCreateMutation = /* GraphQL */ `
|
||||||
mutation {
|
mutation {
|
||||||
checkoutCreate(input: {}) {
|
checkoutCreate(input: {}) {
|
||||||
@ -6,8 +8,7 @@ const checkoutCreateMutation = /* GraphQL */ `
|
|||||||
field
|
field
|
||||||
}
|
}
|
||||||
checkout {
|
checkout {
|
||||||
id
|
${checkoutDetailsFragment}
|
||||||
webUrl
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,10 @@ export const checkoutDetailsFragment = /* GraphQL */ `
|
|||||||
sku
|
sku
|
||||||
title
|
title
|
||||||
image {
|
image {
|
||||||
src
|
originalSrc
|
||||||
|
altText
|
||||||
|
width
|
||||||
|
height
|
||||||
}
|
}
|
||||||
price
|
price
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user