We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5bc55c6 + 7b27c48 commit a928c4eCopy full SHA for a928c4e
app/code/Magento/CatalogGraphQl/Model/Resolver/Products/DataProvider/ExtractDataFromCategoryTree.php
@@ -70,6 +70,10 @@ private function sortTree(array &$tree): array
70
} elseif (isset($node['children_count'])) {
71
$node['children_count'] = 0;
72
}
73
+ // redirect_code null will not return , so it will be 0 when there is no redirect error.
74
+ if (!isset($node['redirect_code'])) {
75
+ $node['redirect_code'] = 0;
76
+ }
77
78
79
return $tree;
0 commit comments