Skip to content

Commit 1030ac0

Browse files
author
Oleksandr Iegorov
committed
MC-29026: GraphQL returns filters with some data if you making request to not existing or empty category
1 parent 3710602 commit 1030ac0

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/CatalogGraphQl/Model/Resolver/Layer/DataProvider

1 file changed

+1
-1
lines changed

app/code/Magento/CatalogGraphQl/Model/Resolver/Layer/DataProvider/Filters.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ private function isNeedToAddFilter(AbstractFilter $filter, array $attributesToFi
9393
if (array_key_exists($name, $this->mappings)) {
9494
$result = in_array($this->mappings[$name], $attributesToFilter);
9595
} else {
96-
$result = false;
96+
$result = true;
9797
}
9898
}
9999
}

0 commit comments

Comments
 (0)