Skip to content

Commit 1f9ef63

Browse files
committed
ACP2E-42: [Magento Cloud] Null response under items list in shopping cart with out of stock product
1 parent a3b706d commit 1f9ef63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ private function getItemErrors(Item $cartItem): ?array
7575
'CartItemErrorType',
7676
(string)$errorType
7777
);
78-
$errors[] = [
78+
$errors[$message] = [
7979
'code' => $errorEnumCode,
8080
'message' => $message
8181
];
8282
}
8383

84-
return $errors;
84+
return array_values($errors);
8585
}
8686
}

0 commit comments

Comments
 (0)