Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add missing prop

dominik-zeglenc856ca88c409
diff --git a/saleor/static/dashboard-next/orders/views/OrderDetails/index.tsx b/saleor/static/dashboard-next/orders/views/OrderDetails/index.tsx
index ed7e157f9d..12b523be2e 100644
--- a/saleor/static/dashboard-next/orders/views/OrderDetails/index.tsx
+++ b/saleor/static/dashboard-next/orders/views/OrderDetails/index.tsx
@@ -574,6 +574,15 @@ export const OrderDetails: React.StatelessComponent<OrderDetailsProps> = ({
path={orderCancelPath(":id")}
render={({ match }) => (
<OrderDraftCancelDialog
+ confirmButtonState={getMutationState(
+ orderDraftCancel.opts.called,
+ orderDraftCancel.opts.loading,
+ maybe(
+ () =>
+ orderDraftCancel.opts.data
+ .draftOrderDelete.errors
+ )
+ )}
onClose={onModalClose}
onConfirm={() =>
orderDraftCancel.mutate({ id })