Skip to content

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

Fix escaping escaped characters

dominik-zeglenaf13d27dff07
diff --git a/saleor/static/dashboard-next/productTypes/index.tsx b/saleor/static/dashboard-next/productTypes/index.tsx
index bcd2e0df0a..7fd05f7730 100644
--- a/saleor/static/dashboard-next/productTypes/index.tsx
+++ b/saleor/static/dashboard-next/productTypes/index.tsx
@@ -13,14 +13,10 @@ export const productTypeListUrl = "/productTypes";
const ProductTypeList: React.StatelessComponent<RouteComponentProps<{}>> = ({
location
}) => {
- const queryString = parseQs(location.search.substr(1));
+ const qs = parseQs(location.search.substr(1));
const params = {
- after: queryString.after
- ? decodeURIComponent(queryString.after)
- : undefined,
- before: queryString.before
- ? decodeURIComponent(queryString.before)
- : undefined
+ after: qs.after,
+ before: qs.before
};
return <ProductTypeListComponent params={params} />;
};