Moved per page value to const
This commit is contained in:
parent
6e21728d95
commit
4a129ececf
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue