mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
enable add and remove items (update) from cart. Update Search
This commit is contained in:
@@ -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(),
|
||||
|
Reference in New Issue
Block a user