Skip to content

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

Fix type bugs

dominik-zeglend6c07c9cf8c9
diff --git a/saleor/static/dashboard-next/categories/views/CategoryCreate.tsx b/saleor/static/dashboard-next/categories/views/CategoryCreate.tsx
index 71fd3d5093..60e7581c08 100644
--- a/saleor/static/dashboard-next/categories/views/CategoryCreate.tsx
+++ b/saleor/static/dashboard-next/categories/views/CategoryCreate.tsx
@@ -48,7 +48,7 @@ export const CategoryCreateView: React.StatelessComponent<
disabled={createCategoryResult.loading}
onBack={() =>
navigate(
- parentId ? categoryUrl(parentId) : categoryListUrl
+ parentId ? categoryUrl(parentId) : categoryListUrl()
)
}
onSubmit={formData =>
diff --git a/saleor/static/dashboard-next/pages/views/PageCreate.tsx b/saleor/static/dashboard-next/pages/views/PageCreate.tsx
index 391d58bd92..b98c57d9c6 100644
--- a/saleor/static/dashboard-next/pages/views/PageCreate.tsx
+++ b/saleor/static/dashboard-next/pages/views/PageCreate.tsx
@@ -50,7 +50,7 @@ export const PageCreate: React.StatelessComponent<PageCreateProps> = () => (
)}
saveButtonBarState={formTransitionState}
page={null}
- onBack={() => navigate(pageListUrl)}
+ onBack={() => navigate(pageListUrl())}
onRemove={() => undefined}
onSubmit={formData =>
pageCreate({
diff --git a/saleor/static/dashboard-next/products/misc.ts b/saleor/static/dashboard-next/products/misc.ts
index 8229a172a0..c4152b5ce8 100644
--- a/saleor/static/dashboard-next/products/misc.ts
+++ b/saleor/static/dashboard-next/products/misc.ts
@@ -1,10 +1,10 @@
import { empty, only } from "../misc";
import { StockAvailability } from "../types/globalTypes";
import { ProductListFilterTabs } from "./components/ProductListFilter";
-import { ProductListQueryParams } from "./views/ProductList";
+import { ProductListUrlQueryParams } from "./urls";
export const getTabName = (
- qs: ProductListQueryParams
+ qs: ProductListUrlQueryParams
): ProductListFilterTabs => {
const filters = {
status: qs.status