Skip to content

Commit

Permalink
Revert "fix crash when deleting more than 21 vouchers" (#1282)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwm0 authored Aug 9, 2021
1 parent c57289a commit 8d20216
Show file tree
Hide file tree
Showing 42 changed files with 42 additions and 42 deletions.
2 changes: 1 addition & 1 deletion src/apps/urls.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { stringifyQs } from "@saleor/utils/urls";
import { stringify as stringifyQs } from "qs";
import urlJoin from "url-join";

import { ActiveTab, Dialog, Pagination, SingleAction } from "../types";
Expand Down
2 changes: 1 addition & 1 deletion src/attributes/urls.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { stringifyQs } from "@saleor/utils/urls";
import { stringify as stringifyQs } from "qs";
import urlJoin from "url-join";

import {
Expand Down
2 changes: 1 addition & 1 deletion src/attributes/views/AttributeList/filters.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { createFilterStructure } from "@saleor/attributes/components/AttributeListPage";
import { AttributeListUrlFilters } from "@saleor/attributes/urls";
import { getFilterQueryParams } from "@saleor/utils/filters";
import { stringifyQs } from "@saleor/utils/urls";
import { getExistingKeys, setFilterOptsStatus } from "@test/filters";
import { config } from "@test/intl";
import { stringify as stringifyQs } from "qs";
import { createIntl } from "react-intl";

import { getFilterQueryParam, getFilterVariables } from "./filters";
Expand Down
2 changes: 1 addition & 1 deletion src/auth/urls.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { stringifyQs } from "@saleor/utils/urls";
import { stringify as stringifyQs } from "qs";

export const passwordResetPath = "/reset-password/";
export const passwordResetUrl = passwordResetPath;
Expand Down
2 changes: 1 addition & 1 deletion src/categories/urls.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { stringifyQs } from "@saleor/utils/urls";
import { stringify as stringifyQs } from "qs";
import urlJoin from "url-join";

import {
Expand Down
2 changes: 1 addition & 1 deletion src/channels/urls.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { stringifyQs } from "@saleor/utils/urls";
import { stringify as stringifyQs } from "qs";
import urlJoin from "url-join";

import { Dialog, Filters, SingleAction, Sort } from "../types";
Expand Down
2 changes: 1 addition & 1 deletion src/collections/urls.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ChannelsAction } from "@saleor/channels/urls";
import { stringifyQs } from "@saleor/utils/urls";
import { stringify as stringifyQs } from "qs";
import urlJoin from "url-join";

import {
Expand Down
2 changes: 1 addition & 1 deletion src/collections/views/CollectionList/filters.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { createFilterStructure } from "@saleor/collections/components/Collection
import { CollectionListUrlFilters } from "@saleor/collections/urls";
import { CollectionPublished } from "@saleor/types/globalTypes";
import { getFilterQueryParams } from "@saleor/utils/filters";
import { stringifyQs } from "@saleor/utils/urls";
import { getExistingKeys, setFilterOptsStatus } from "@test/filters";
import { config } from "@test/intl";
import { stringify as stringifyQs } from "qs";
import { createIntl } from "react-intl";

import { getFilterQueryParam, getFilterVariables } from "./filters";
Expand Down
2 changes: 1 addition & 1 deletion src/customers/urls.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { stringifyQs } from "@saleor/utils/urls";
import { stringify as stringifyQs } from "qs";
import urlJoin from "url-join";

import {
Expand Down
2 changes: 1 addition & 1 deletion src/customers/views/CustomerList/filters.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { createFilterStructure } from "@saleor/customers/components/CustomerList
import { CustomerListUrlFilters } from "@saleor/customers/urls";
import { date } from "@saleor/fixtures";
import { getFilterQueryParams } from "@saleor/utils/filters";
import { stringifyQs } from "@saleor/utils/urls";
import { getExistingKeys, setFilterOptsStatus } from "@test/filters";
import { config } from "@test/intl";
import { stringify as stringifyQs } from "qs";
import { createIntl } from "react-intl";

import { getFilterQueryParam, getFilterVariables } from "./filters";
Expand Down
2 changes: 1 addition & 1 deletion src/discounts/urls.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ChannelsAction } from "@saleor/channels/urls";
import { stringifyQs } from "@saleor/utils/urls";
import { stringify as stringifyQs } from "qs";
import urlJoin from "url-join";

import {
Expand Down
2 changes: 1 addition & 1 deletion src/discounts/views/SaleList/filters.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import {
DiscountValueTypeEnum
} from "@saleor/types/globalTypes";
import { getFilterQueryParams } from "@saleor/utils/filters";
import { stringifyQs } from "@saleor/utils/urls";
import { getExistingKeys, setFilterOptsStatus } from "@test/filters";
import { config } from "@test/intl";
import { stringify as stringifyQs } from "qs";
import { createIntl } from "react-intl";

import { getFilterQueryParam, getFilterVariables } from "./filters";
Expand Down
2 changes: 1 addition & 1 deletion src/discounts/views/VoucherList/filters.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import {
VoucherDiscountType
} from "@saleor/types/globalTypes";
import { getFilterQueryParams } from "@saleor/utils/filters";
import { stringifyQs } from "@saleor/utils/urls";
import { getExistingKeys, setFilterOptsStatus } from "@test/filters";
import { config } from "@test/intl";
import { stringify as stringifyQs } from "qs";
import { createIntl } from "react-intl";

import { getFilterQueryParam, getFilterVariables } from "./filters";
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/usePaginator.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { stringifyQs } from "@saleor/utils/urls";
import { stringify as stringifyQs } from "qs";

import { Pagination } from "../types";
import useNavigator from "./useNavigator";
Expand Down
2 changes: 1 addition & 1 deletion src/navigation/urls.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { stringifyQs } from "@saleor/utils/urls";
import { stringify as stringifyQs } from "qs";
import urlJoin from "url-join";

import { BulkAction, Dialog, Pagination, SingleAction, Sort } from "../types";
Expand Down
2 changes: 1 addition & 1 deletion src/orders/urls.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { stringifyQs } from "@saleor/utils/urls";
import { stringify as stringifyQs } from "qs";
import urlJoin from "url-join";

import {
Expand Down
2 changes: 1 addition & 1 deletion src/orders/views/OrderDraftList/filters.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { date } from "@saleor/fixtures";
import { createFilterStructure } from "@saleor/orders/components/OrderDraftListPage";
import { OrderDraftListUrlFilters } from "@saleor/orders/urls";
import { getFilterQueryParams } from "@saleor/utils/filters";
import { stringifyQs } from "@saleor/utils/urls";
import { getExistingKeys, setFilterOptsStatus } from "@test/filters";
import { config } from "@test/intl";
import { stringify as stringifyQs } from "qs";
import { createIntl } from "react-intl";

import { getFilterQueryParam, getFilterVariables } from "./filters";
Expand Down
2 changes: 1 addition & 1 deletion src/orders/views/OrderList/filters.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { createFilterStructure } from "@saleor/orders/components/OrderListPage";
import { OrderListUrlFilters } from "@saleor/orders/urls";
import { OrderStatusFilter } from "@saleor/types/globalTypes";
import { getFilterQueryParams } from "@saleor/utils/filters";
import { stringifyQs } from "@saleor/utils/urls";
import { getExistingKeys, setFilterOptsStatus } from "@test/filters";
import { config } from "@test/intl";
import { stringify as stringifyQs } from "qs";
import { createIntl } from "react-intl";

import { getFilterQueryParam, getFilterVariables } from "./filters";
Expand Down
2 changes: 1 addition & 1 deletion src/pageTypes/urls.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { stringifyQs } from "@saleor/utils/urls";
import { stringify as stringifyQs } from "qs";
import urlJoin from "url-join";

import {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/urls.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { stringifyQs } from "@saleor/utils/urls";
import { stringify as stringifyQs } from "qs";
import urlJoin from "url-join";

import {
Expand Down
2 changes: 1 addition & 1 deletion src/permissionGroups/urls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
Sort,
TabActionDialog
} from "@saleor/types";
import { stringifyQs } from "@saleor/utils/urls";
import { stringify as stringifyQs } from "qs";
import urlJoin from "url-join";

const permissionGroupSection = "/permission-groups/";
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/urls.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { stringifyQs } from "@saleor/utils/urls";
import { stringify as stringifyQs } from "qs";
import urlJoin from "url-join";

import {
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/views/PluginList/filters.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import {
import { PluginListUrlFilters } from "@saleor/plugins/urls";
import { PluginConfigurationType } from "@saleor/types/globalTypes";
import { getFilterQueryParams } from "@saleor/utils/filters";
import { stringifyQs } from "@saleor/utils/urls";
import { getExistingKeys } from "@test/filters";
import { config } from "@test/intl";
import { stringify as stringifyQs } from "qs";
import { createIntl } from "react-intl";

import { getFilterQueryParam, getFilterVariables } from "./filters";
Expand Down
2 changes: 1 addition & 1 deletion src/productTypes/urls.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { stringifyQs } from "@saleor/utils/urls";
import { stringify as stringifyQs } from "qs";
import urlJoin from "url-join";

import {
Expand Down
2 changes: 1 addition & 1 deletion src/productTypes/views/ProductTypeList/filters.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import {
ProductTypeEnum
} from "@saleor/types/globalTypes";
import { getFilterQueryParams } from "@saleor/utils/filters";
import { stringifyQs } from "@saleor/utils/urls";
import { getExistingKeys, setFilterOptsStatus } from "@test/filters";
import { config } from "@test/intl";
import { stringify as stringifyQs } from "qs";
import { createIntl } from "react-intl";

import { getFilterQueryParam, getFilterVariables } from "./filters";
Expand Down
2 changes: 1 addition & 1 deletion src/products/views/ProductList/filters.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { createFilterStructure } from "@saleor/products/components/ProductListPa
import { ProductListUrlFilters } from "@saleor/products/urls";
import { StockAvailability } from "@saleor/types/globalTypes";
import { getFilterQueryParams } from "@saleor/utils/filters";
import { stringifyQs } from "@saleor/utils/urls";
import { getExistingKeys, setFilterOptsStatus } from "@test/filters";
import { config } from "@test/intl";
import { stringify as stringifyQs } from "qs";
import { createIntl } from "react-intl";

import { getFilterQueryParam, getFilterVariables } from "./filters";
Expand Down
2 changes: 1 addition & 1 deletion src/shipping/urls.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ChannelsAction } from "@saleor/channels/urls";
import { stringifyQs } from "@saleor/utils/urls";
import { stringify as stringifyQs } from "qs";
import urlJoin from "url-join";

import { BulkAction, Dialog, Pagination, SingleAction } from "../types";
Expand Down
2 changes: 1 addition & 1 deletion src/siteSettings/urls.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { stringifyQs } from "@saleor/utils/urls";
import { stringify as stringifyQs } from "qs";

import { Dialog } from "../types";

Expand Down
2 changes: 1 addition & 1 deletion src/staff/urls.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { stringifyQs } from "@saleor/utils/urls";
import { stringify as stringifyQs } from "qs";
import urlJoin from "url-join";

import {
Expand Down
2 changes: 1 addition & 1 deletion src/staff/views/StaffList/filters.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { createFilterStructure } from "@saleor/staff/components/StaffListPage";
import { StaffListUrlFilters } from "@saleor/staff/urls";
import { StaffMemberStatus } from "@saleor/types/globalTypes";
import { getFilterQueryParams } from "@saleor/utils/filters";
import { stringifyQs } from "@saleor/utils/urls";
import { getExistingKeys, setFilterOptsStatus } from "@test/filters";
import { config } from "@test/intl";
import { stringify as stringifyQs } from "qs";
import { createIntl } from "react-intl";

import { getFilterQueryParam, getFilterVariables } from "./filters";
Expand Down
2 changes: 1 addition & 1 deletion src/translations/urls.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Pagination } from "@saleor/types";
import { stringifyQs } from "@saleor/utils/urls";
import { stringify as stringifyQs } from "qs";
import urlJoin from "url-join";

import { TranslationsEntitiesListFilterTab } from "./components/TranslationsEntitiesListPage";
Expand Down
2 changes: 1 addition & 1 deletion src/translations/views/TranslationsCategories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import useNavigator from "@saleor/hooks/useNavigator";
import useNotifier from "@saleor/hooks/useNotifier";
import useShop from "@saleor/hooks/useShop";
import { commonMessages } from "@saleor/intl";
import { stringifyQs } from "@saleor/utils/urls";
import { stringify as stringifyQs } from "qs";
import React from "react";
import { useIntl } from "react-intl";

Expand Down
2 changes: 1 addition & 1 deletion src/translations/views/TranslationsCollections.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import useNavigator from "@saleor/hooks/useNavigator";
import useNotifier from "@saleor/hooks/useNotifier";
import useShop from "@saleor/hooks/useShop";
import { commonMessages } from "@saleor/intl";
import { stringifyQs } from "@saleor/utils/urls";
import { stringify as stringifyQs } from "qs";
import React from "react";
import { useIntl } from "react-intl";

Expand Down
2 changes: 1 addition & 1 deletion src/translations/views/TranslationsEntities.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import usePaginator, {
} from "@saleor/hooks/usePaginator";
import useShop from "@saleor/hooks/useShop";
import { mapEdgesToItems } from "@saleor/utils/maps";
import { stringifyQs } from "@saleor/utils/urls";
import { stringify as stringifyQs } from "qs";
import React from "react";

import { PAGINATE_BY } from "../../config";
Expand Down
2 changes: 1 addition & 1 deletion src/translations/views/TranslationsPages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import useNavigator from "@saleor/hooks/useNavigator";
import useNotifier from "@saleor/hooks/useNotifier";
import useShop from "@saleor/hooks/useShop";
import { commonMessages } from "@saleor/intl";
import { stringifyQs } from "@saleor/utils/urls";
import { stringify as stringifyQs } from "qs";
import React from "react";
import { useIntl } from "react-intl";

Expand Down
2 changes: 1 addition & 1 deletion src/translations/views/TranslationsProductTypes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import useNotifier from "@saleor/hooks/useNotifier";
import useShop from "@saleor/hooks/useShop";
import { commonMessages } from "@saleor/intl";
import { ListViews, Pagination } from "@saleor/types";
import { stringifyQs } from "@saleor/utils/urls";
import { stringify as stringifyQs } from "qs";
import React from "react";
import { useIntl } from "react-intl";

Expand Down
2 changes: 1 addition & 1 deletion src/translations/views/TranslationsProducts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import useNavigator from "@saleor/hooks/useNavigator";
import useNotifier from "@saleor/hooks/useNotifier";
import useShop from "@saleor/hooks/useShop";
import { commonMessages } from "@saleor/intl";
import { stringifyQs } from "@saleor/utils/urls";
import { stringify as stringifyQs } from "qs";
import React from "react";
import { useIntl } from "react-intl";

Expand Down
2 changes: 1 addition & 1 deletion src/translations/views/TranslationsSales.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import useNavigator from "@saleor/hooks/useNavigator";
import useNotifier from "@saleor/hooks/useNotifier";
import useShop from "@saleor/hooks/useShop";
import { commonMessages } from "@saleor/intl";
import { stringifyQs } from "@saleor/utils/urls";
import { stringify as stringifyQs } from "qs";
import React from "react";
import { useIntl } from "react-intl";

Expand Down
2 changes: 1 addition & 1 deletion src/translations/views/TranslationsShippingMethod.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import useNavigator from "@saleor/hooks/useNavigator";
import useNotifier from "@saleor/hooks/useNotifier";
import useShop from "@saleor/hooks/useShop";
import { commonMessages } from "@saleor/intl";
import { stringifyQs } from "@saleor/utils/urls";
import { stringify as stringifyQs } from "qs";
import React from "react";
import { useIntl } from "react-intl";

Expand Down
2 changes: 1 addition & 1 deletion src/translations/views/TranslationsVouchers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import useNavigator from "@saleor/hooks/useNavigator";
import useNotifier from "@saleor/hooks/useNotifier";
import useShop from "@saleor/hooks/useShop";
import { commonMessages } from "@saleor/intl";
import { stringifyQs } from "@saleor/utils/urls";
import { stringify as stringifyQs } from "qs";
import React from "react";
import { useIntl } from "react-intl";

Expand Down
2 changes: 1 addition & 1 deletion src/warehouses/urls.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { stringifyQs } from "@saleor/utils/urls";
import { stringify as stringifyQs } from "qs";
import urlJoin from "url-join";

import {
Expand Down
2 changes: 1 addition & 1 deletion src/webhooks/urls.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { customAppListPath } from "@saleor/apps/urls";
import { appsSection } from "@saleor/apps/urls";
import { stringifyQs } from "@saleor/utils/urls";
import { stringify as stringifyQs } from "qs";
import urlJoin from "url-join";

import { ActiveTab, Dialog, SingleAction, TabActionDialog } from "../types";
Expand Down

0 comments on commit 8d20216

Please sign in to comment.