Fix types

This commit is contained in:
dominik-zeglen 2019-11-06 16:25:03 +01:00
parent 65d31081af
commit f600c3f140
2 changed files with 3 additions and 10 deletions

View file

@ -8,7 +8,7 @@ import useNavigator from "@saleor/hooks/useNavigator";
import useNotifier from "@saleor/hooks/useNotifier"; import useNotifier from "@saleor/hooks/useNotifier";
import useShop from "@saleor/hooks/useShop"; import useShop from "@saleor/hooks/useShop";
import { commonMessages } from "@saleor/intl"; import { commonMessages } from "@saleor/intl";
import { getMutationState, maybe, transformFormToAddress } from "../../misc"; import { getMutationState, maybe } from "../../misc";
import CustomerAddressDialog from "../components/CustomerAddressDialog"; import CustomerAddressDialog from "../components/CustomerAddressDialog";
import CustomerAddressListPage from "../components/CustomerAddressListPage"; import CustomerAddressListPage from "../components/CustomerAddressListPage";
import { import {

View file

@ -6,12 +6,7 @@ import useUser from "@saleor/hooks/useUser";
import { DEFAULT_INITIAL_SEARCH_DATA } from "../../../config"; import { DEFAULT_INITIAL_SEARCH_DATA } from "../../../config";
import SearchCustomers from "../../../containers/SearchCustomers"; import SearchCustomers from "../../../containers/SearchCustomers";
import { customerUrl } from "../../../customers/urls"; import { customerUrl } from "../../../customers/urls";
import { import { getMutationState, maybe, transformAddressToForm } from "../../../misc";
getMutationState,
maybe,
transformAddressToForm,
transformFormToAddress
} from "../../../misc";
import { productUrl } from "../../../products/urls"; import { productUrl } from "../../../products/urls";
import { OrderStatus } from "../../../types/globalTypes"; import { OrderStatus } from "../../../types/globalTypes";
import OrderAddressEditDialog from "../../components/OrderAddressEditDialog"; import OrderAddressEditDialog from "../../components/OrderAddressEditDialog";
@ -640,9 +635,7 @@ export const OrderDetails: React.StatelessComponent<OrderDetailsProps> = ({
orderUpdate.mutate({ orderUpdate.mutate({
id, id,
input: { input: {
billingAddress: transformFormToAddress(
billingAddress billingAddress
)
} }
}) })
} }