Skip to content

Commit a556345

Browse files
author
Prabhu Ram
committed
minor fix
1 parent 4391235 commit a556345

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

app/code/Magento/CatalogGraphQl/Model/Resolver/Product/CustomizableEnteredOptionValueUid.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ public function resolve(
4545
array $value = null,
4646
array $args = null
4747
) {
48+
if (isset($value['uid'])) {
49+
return $value['uid'];
50+
}
4851
if (!isset($value['option_id']) || empty($value['option_id'])) {
4952
throw new GraphQlInputException(__('"option_id" value should be specified.'));
5053
}

app/code/Magento/CatalogGraphQl/Model/Resolver/Product/CustomizableSelectedOptionValueUid.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ public function resolve(
4545
array $value = null,
4646
array $args = null
4747
) {
48+
if (isset($value['uid'])) {
49+
return $value['uid'];
50+
}
4851
if (!isset($value['option_id']) || empty($value['option_id'])) {
4952
throw new GraphQlInputException(__('"option_id" value should be specified.'));
5053
}

0 commit comments

Comments
 (0)