pre-sort page size options

This commit is contained in:
Collin M. Barrett 2019-08-25 07:45:34 -05:00
parent 0d3e59fd81
commit 6d430168db

View file

@ -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
});
}