Skip to content

Commit e848f12

Browse files
author
Prabhu Ram
committed
MC-36897: [GraphQl] Store config and schema modifications for Wishlist
- static fix
1 parent b365d93 commit e848f12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/WishlistGraphQl/Model/Resolver/UpdateProductsInWishlist.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,13 @@ private function getWishlistItems(array $wishlistItemsData, Wishlist $wishlist):
137137
foreach ($wishlistItemsData as $wishlistItemData) {
138138
if (!isset($wishlistItemData['quantity'])) {
139139
$wishlistItem = $wishlist->getItem($wishlistItemData['wishlist_item_id']);
140-
if (isset($wishlistItem)) {
140+
if ($wishlistItem !== null) {
141141
$wishlistItemData['quantity'] = (float) $wishlistItem->getQty();
142142
}
143143
}
144144
if (!isset($wishlistItemData['description'])) {
145145
$wishlistItem = $wishlist->getItem($wishlistItemData['wishlist_item_id']);
146-
if (isset($wishlistItem)) {
146+
if ($wishlistItem !== null) {
147147
$wishlistItemData['description'] = $wishlistItem->getDescription();
148148
}
149149
}

0 commit comments

Comments
 (0)