From 6d430168dbd02b2726390711eb01232f237a0717 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Sun, 25 Aug 2019 07:45:34 -0500 Subject: [PATCH] pre-sort page size options --- .../src/components/allListsTable/AllListsTable.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FilterLists.Web.V2/src/components/allListsTable/AllListsTable.tsx b/src/FilterLists.Web.V2/src/components/allListsTable/AllListsTable.tsx index b22b8955d..36c927aab 100644 --- a/src/FilterLists.Web.V2/src/components/allListsTable/AllListsTable.tsx +++ b/src/FilterLists.Web.V2/src/components/allListsTable/AllListsTable.tsx @@ -58,7 +58,7 @@ export class AllListsTable extends React.Component<{}, State> { const pageSize = Math.floor((window.innerHeight - 211.5) / 56); this.setState({ pageSize: pageSize, - pageSizeOptions: [200, 2000, pageSize].sort((a, b) => a - b).map(String), + pageSizeOptions: [pageSize, 200, 2000].sort((a, b) => a - b).map(String), isNarrowWindow: window.innerWidth < 576 ? true : false }); }