Fix product create view

This commit is contained in:
dominik-zeglen 2020-03-24 20:37:14 +01:00
parent f94fdba7b9
commit c161de1270

View file

@ -84,6 +84,7 @@ interface ProductCreatePageProps {
fetchCategories: (data: string) => void;
fetchCollections: (data: string) => void;
fetchProductTypes: (data: string) => void;
onWarehouseEdit: () => void;
onBack?();
onSubmit?(data: ProductCreatePageSubmitData);
}
@ -104,7 +105,8 @@ export const ProductCreatePage: React.FC<ProductCreatePageProps> = ({
saveButtonBarState,
onBack,
fetchProductTypes,
onSubmit
onSubmit,
onWarehouseEdit
}: ProductCreatePageProps) => {
const intl = useIntl();
const localizeDate = useDateLocalize();