enable add and remove items (update) from cart. Update Search

This commit is contained in:
Greg Hoskin
2021-04-04 16:16:27 -06:00
parent 18936b7544
commit d0a04a8fe9
7 changed files with 41 additions and 50 deletions

View File

@@ -23,11 +23,7 @@ export const handler: MutationHook<Cart, {}, CartItemBody> = {
message: 'The item quantity has to be a valid integer greater than 0',
})
}
const { checkoutLineItemsAdd } = await fetch<
Mutation,
MutationCheckoutLineItemsAddArgs
>({
const response = await fetch<Mutation, MutationCheckoutLineItemsAddArgs>({
...options,
variables: {
checkoutId: getCheckoutId(),