set min page size to 5

ref #329
This commit is contained in:
Collin M. Barrett 2018-08-16 12:15:06 -05:00
parent daecca1bc1
commit 5a4cce8ed5

View file

@ -63,7 +63,7 @@ export class Home extends React.Component<RouteComponentProps<{}>, IHomeState> {
updatePageSize() {
this.setState({
pageSize: Math.floor((window.innerHeight - 361) / 52)
pageSize: Math.max(Math.floor((window.innerHeight - 361) / 52), 5)
});
}