Moved per page value to const

This commit is contained in:
Phil Hughes 2017-04-18 08:59:16 +01:00
parent 6e21728d95
commit 4a129ececf
1 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,8 @@
/* global ListLabel */
import queryData from '../utils/query_data';
const PER_PAGE = 20;
class List {
constructor (obj) {
this.id = obj.id;
@ -58,7 +60,7 @@ class List {
nextPage () {
if (this.issuesSize > this.issues.length) {
if (this.issues.length / 20 >= 1) {
if (this.issues.length / PER_PAGE >= 1) {
this.page += 1;
}