Skip to content

Commit 5a45cce

Browse files
committed
MC-19746: The shipping address contains null values when there's no shipping address set on a cart
- return null instead of fields when there's no selected method
1 parent edafa51 commit 5a45cce

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

app/code/Magento/QuoteGraphQl/Model/Resolver/ShippingAddress/SelectedShippingMethod.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,7 @@ public function resolve(Field $field, $context, ResolveInfo $info, array $value
6464
],
6565
];
6666
} else {
67-
$data = [
68-
'carrier_code' => null,
69-
'method_code' => null,
70-
'carrier_title' => $carrierTitle,
71-
'method_title' => $methodTitle,
72-
'amount' => null,
73-
'base_amount' => null,
74-
];
67+
$data = null;
7568
}
7669
return $data;
7770
}

0 commit comments

Comments
 (0)