Merge pull request #753 from mirumee/fix/order-draft-back-button

Fix order draft back button redirect
This commit is contained in:
Dawid Tarasiuk 2020-10-09 11:01:52 +02:00 committed by GitHub
commit f75366ce73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -50,6 +50,7 @@ All notable, unreleased changes to this project will be documented in this file.
- Fix misaligned rich text draft controls - #725 by @orzechdev
- Allow taxes to be configured per product - #728 by @dominik-zeglen
- Fix style of product type attributes empty table - #744 by @orzechdev
- Fix order draft back button redirect - #753 by @orzechdev
## 2.10.1

View file

@ -54,6 +54,7 @@ import OrderOperations from "../../containers/OrderOperations";
import { TypedOrderDetailsQuery, useOrderVariantSearch } from "../../queries";
import { OrderDetails_order } from "../../types/OrderDetails";
import {
orderDraftListUrl,
orderFulfillUrl,
orderListUrl,
orderUrl,
@ -515,7 +516,7 @@ export const OrderDetails: React.FC<OrderDetailsProps> = ({ id, params }) => {
onDraftFinalize={() => openModal("finalize")}
onDraftRemove={() => openModal("cancel")}
onOrderLineAdd={() => openModal("add-order-line")}
onBack={() => navigate(orderListUrl())}
onBack={() => navigate(orderDraftListUrl())}
order={order}
countries={maybe(() => data.shop.countries, []).map(
country => ({