Skip to content

Commit 2059e95

Browse files
author
Prabhu Ram
committed
Merge remote-tracking branch 'origin/PWA-1720' into PWA-1655
2 parents 3fe7cb7 + f2627d6 commit 2059e95

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/CatalogGraphQl/DataProvider/Product/LayeredNavigation/Builder

1 file changed

+2
-2
lines changed

app/code/Magento/CatalogGraphQl/DataProvider/Product/LayeredNavigation/Builder/Attribute.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ public function build(AggregationInterface $aggregation, ?int $storeId): array
8484
$attribute['attribute_label'] ?? $bucketName,
8585
\count($bucket->getValues()),
8686
$attribute['attribute_code'] ?? $bucketName,
87-
$attribute['position']
87+
isset($attribute['position']) ? $attribute['position'] : null
8888
);
8989

90-
$options = $this->getSortedOptions($bucket, $attribute['options'] ?: []);
90+
$options = $this->getSortedOptions($bucket, isset($attribute['options']) ? $attribute['options'] : []);
9191
foreach ($options as $option) {
9292
$result[$bucketName]['options'][] = $this->layerFormatter->buildItem(
9393
$option['label'],

0 commit comments

Comments
 (0)