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.
1 parent 4a28372 commit b8d2663Copy full SHA for b8d2663
lib/internal/Magento/Framework/GraphQl/Config.php
@@ -65,10 +65,12 @@ public function getConfigElement(string $configElementName) : ConfigElementInter
65
}
66
67
$fieldsInQuery = $this->queryFields->getFieldsUsedInQuery();
68
- if (isset($data['fields']) && !empty($fieldsInQuery)) {
69
- foreach ($data['fields'] as $fieldName => $fieldConfig) {
70
- if (!isset($fieldsInQuery[$fieldName])) {
71
- unset($data['fields'][$fieldName]);
+ if (isset($data['fields'])) {
+ if (!empty($fieldsInQuery)) {
+ foreach ($data['fields'] as $fieldName => $fieldConfig) {
+ if (!isset($fieldsInQuery[$fieldName])) {
72
+ unset($data['fields'][$fieldName]);
73
+ }
74
75
76
0 commit comments