mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
fix: cart error on first load
This commit is contained in:
@@ -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}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -19,7 +19,10 @@ export const checkoutDetailsFragment = /* GraphQL */ `
|
||||
sku
|
||||
title
|
||||
image {
|
||||
src
|
||||
originalSrc
|
||||
altText
|
||||
width
|
||||
height
|
||||
}
|
||||
price
|
||||
}
|
||||
|
Reference in New Issue
Block a user