Skip to content

Commit 764c519

Browse files
AC-7832: Remove Cart Item Fix
1 parent 5c325c0 commit 764c519

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/code/Magento/QuoteGraphQl/Model/Resolver/RemoveItemFromCart.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function resolve(Field $field, $context, ResolveInfo $info, array $value
8787

8888
$storeId = (int)$context->getExtensionAttributes()->getStore()->getId();
8989
/** Check if the current user is allowed to perform actions with the cart */
90-
$this->getCartForUser->execute($maskedCartId, $context->getUserId(), $storeId);
90+
$cart = $this->getCartForUser->execute($maskedCartId, $context->getUserId(), $storeId);
9191

9292
try {
9393
$this->cartItemRepository->deleteById($cartId, $itemId);
@@ -97,7 +97,6 @@ public function resolve(Field $field, $context, ResolveInfo $info, array $value
9797
throw new GraphQlInputException(__($e->getMessage()), $e);
9898
}
9999

100-
$cart = $this->getCartForUser->execute($maskedCartId, $context->getUserId(), $storeId);
101100
return [
102101
'cart' => [
103102
'model' => $cart,

0 commit comments

Comments
 (0)