Skip to content

Commit 9769418

Browse files
author
Govind Sharma
authored
Update GroupedProductTypeResolver.php
1 parent 0095028 commit 9769418

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/GroupedProductGraphQl/Model/GroupedProductTypeResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
namespace Magento\GroupedProductGraphQl\Model;
99

1010
use Magento\Framework\GraphQl\Query\Resolver\TypeResolverInterface;
11-
11+
use Magento\GroupedProduct\Model\Product\Type\Grouped as Type;
1212
/**
1313
* {@inheritdoc}
1414
*/
@@ -19,7 +19,7 @@ class GroupedProductTypeResolver implements TypeResolverInterface
1919
*/
2020
public function resolveType(array $data) : string
2121
{
22-
if (isset($data['type_id']) && $data['type_id'] == 'grouped') {
22+
if (isset($data['type_id']) && $data['type_id'] == Type::TYPE_CODE) {
2323
return 'GroupedProduct';
2424
}
2525
return '';

0 commit comments

Comments
 (0)