Skip to content

Commit 0b56c80

Browse files
authored
Fix for adding more then one configurable product
1 parent 3fef6d1 commit 0b56c80

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/ConfigurableProductGraphQl/Model/Options

1 file changed

+1
-1
lines changed

app/code/Magento/ConfigurableProductGraphQl/Model/Options/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function getAttributesByProductId(int $productId): array
111111
*/
112112
private function fetch(): array
113113
{
114-
if (empty($this->productIds) || !empty($this->attributeMap)) {
114+
if (empty($this->productIds) || array_key_exists(end($this->productIds), $this->attributeMap)) {
115115
return $this->attributeMap;
116116
}
117117

0 commit comments

Comments
 (0)