From 26f118e42a0664dd25542c99b988c7b203b9e575 Mon Sep 17 00:00:00 2001 From: sektordv Date: Tue, 27 Jul 2021 16:35:35 +0200 Subject: [PATCH] fix crash when deleting more than 21 vouchers --- src/discounts/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/discounts/index.tsx b/src/discounts/index.tsx index 98f7e5960..3c4ce826e 100644 --- a/src/discounts/index.tsx +++ b/src/discounts/index.tsx @@ -63,7 +63,7 @@ const SaleCreateView: React.FC = ({ location }) => { }; const VoucherListView: React.FC> = ({ location }) => { - const qs = parseQs(location.search.substr(1)); + const qs = parseQs(location.search.substr(1), { arrayLimit: Infinity }); const params: VoucherListUrlQueryParams = asSortParams( qs, VoucherListUrlSortField,