Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Apply review suggestion
IKarbowiak03ec29010043
diff --git a/saleor/graphql/order/mutations/fulfillments.py b/saleor/graphql/order/mutations/fulfillments.pyindex ba3d5ee84d..7e004362d9 100644--- a/saleor/graphql/order/mutations/fulfillments.py+++ b/saleor/graphql/order/mutations/fulfillments.py@@ -212,8 +212,8 @@ class FulfillmentUpdateTracking(BaseMutation):fulfillment.save()order = fulfillment.orderfulfillment_tracking_updated(fulfillment, info.context.user, tracking_number)- input_data = data.get("input")- notify_customer = input_data.get("notify_customer") if input_data else None+ input_data = data.get("input", {})+ notify_customer = input_data.get("notify_customer")if notify_customer:send_fulfillment_update.delay(order.pk, fulfillment.pk)return FulfillmentUpdateTracking(fulfillment=fulfillment, order=order)