fix: cart delete mutation and console warnings
Some checks failed
Build and Deploy / build (push) Has been cancelled

- Fix checkoutLinesDelete mutation: use 'id' param and 'linesIds' instead of 'lineIds'
- Fix viewport metadata warning: move to separate viewport export in layout.tsx
- Add sizes prop to checkout Image with fill
- Fix CartDrawer init checkout useEffect to prevent re-render loops
- Various product detail improvements
This commit is contained in:
Unchained
2026-03-23 13:49:14 +02:00
parent 7f603c83e9
commit ace1ac104e
8 changed files with 95 additions and 20 deletions

View File

@@ -221,8 +221,8 @@ export const useSaleorCheckoutStore = create<SaleorCheckoutStore>()(
const { data } = await saleorClient.mutate<CheckoutLinesDeleteResponse>({
mutation: CHECKOUT_LINES_DELETE,
variables: {
checkoutId: checkout.id,
lineIds: [lineId],
id: checkout.id,
linesIds: [lineId],
},
});