Skip to content

Commit 4ae0f74

Browse files
author
Prabhu Ram
authored
Merge pull request #6126 from magento-honey-badgers/wishlist-gql-ce-248
[honey][MultipleWishlist] Adding GraphQl coverage for MultipleWishlist and GiftCard
2 parents 8aa1d46 + 0fbe1f9 commit 4ae0f74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Wishlist/Model/Wishlist/Data/WishlistItemFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class WishlistItemFactory
2424
public function create(array $data): WishlistItem
2525
{
2626
return new WishlistItem(
27-
$data['quantity'],
27+
$data['quantity'] ?? 0,
2828
$data['sku'] ?? null,
2929
$data['parent_sku'] ?? null,
3030
isset($data['wishlist_item_id']) ? (int) $data['wishlist_item_id'] : null,

0 commit comments

Comments
 (0)