Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Remove querystring params
dominik-zeglen5c3126db186c
diff --git a/saleor/static/dashboard-next/products/index.tsx b/saleor/static/dashboard-next/products/index.tsxindex c77720b12a..945f8f8348 100644--- a/saleor/static/dashboard-next/products/index.tsx+++ b/saleor/static/dashboard-next/products/index.tsx@@ -40,15 +40,9 @@ const ProductVariant: React.StatelessComponent<RouteComponentProps<any>> = ({const ProductImage: React.StatelessComponent<RouteComponentProps<any>> = ({match}) => {- const qs = parseQs(location.search.substr(1));- const params = {- after: qs.after,- before: qs.before- };return (<ProductImageComponentimageId={match.params.imageId}- params={params}productId={match.params.productId}/>);diff --git a/saleor/static/dashboard-next/products/views/ProductImage.tsx b/saleor/static/dashboard-next/products/views/ProductImage.tsxindex 67b7927bf8..2d0bd23d30 100644--- a/saleor/static/dashboard-next/products/views/ProductImage.tsx+++ b/saleor/static/dashboard-next/products/views/ProductImage.tsx@@ -4,7 +4,6 @@ import { productImageUrl, productUrl } from "..";import Messages from "../../components/messages";import Navigator from "../../components/Navigator";import { ProductImageUpdateMutation } from "../../gql-types";-import { createPaginationData, createPaginationState } from "../../misc";import ProductImagePage from "../components/ProductImagePage";import {productImageDeleteMutation,@@ -17,17 +16,11 @@ import { productImageQuery, TypedProductImageQuery } from "../queries";interface ProductImageProps {imageId: string;productId: string;- params: {- after?: string;- before?: string;- };}-const PAGINATE_BY = 8;-export const ProductImage: React.StatelessComponent<ProductImageProps> = ({imageId,- params,+productId}) => (<Messages>