Skip to content

Commit 4aa808e

Browse files
committed
Fixed skipping of empty option
1 parent 7674eb1 commit 4aa808e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/EavGraphQl/Model/Resolver/AttributeOptions.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function resolve(
6868
if (is_array($attributeOptions)) {
6969
/** @var \Magento\Eav\Api\Data\AttributeOptionInterface $option */
7070
foreach ($attributeOptions as $option) {
71-
if (!$option->getValue()) {
71+
if ($option->getValue() === '') {
7272
continue;
7373
}
7474

0 commit comments

Comments
 (0)