Merge pull request #753 from mirumee/fix/order-draft-back-button
Fix order draft back button redirect
This commit is contained in:
commit
f75366ce73
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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 => ({
|
||||
|
|
Loading…
Reference in a new issue