Commit 4a129ece authored by Phil Hughes's avatar Phil Hughes

Moved per page value to const

parent 6e21728d
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment