Skip to content

Commit d0d64a9

Browse files
#39729: Cannot return null for non-nullable field "SelectedCustomizableOption.label"
1 parent c8ba4ab commit d0d64a9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2015 Adobe
4+
* * All Rights Reserved.
55
*/
66
declare(strict_types=1);
77

@@ -59,7 +59,10 @@ public function resolve(Field $field, $context, ResolveInfo $info, ?array $value
5959
$cartItem,
6060
(int)$customizableOptionId
6161
);
62-
$customizableOptionsData[] = $customizableOption;
62+
63+
if (!empty($customizableOption)) {
64+
$customizableOptionsData[] = $customizableOption;
65+
}
6366
}
6467
return $customizableOptionsData;
6568
}

0 commit comments

Comments
 (0)