From 4a129ececfd0e23fff117379782e3fd3761b74ef Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Tue, 18 Apr 2017 08:59:16 +0100 Subject: [PATCH] Moved per page value to const --- app/assets/javascripts/boards/models/list.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/boards/models/list.js b/app/assets/javascripts/boards/models/list.js index d83006ebe1a..f2b79a88a4a 100644 --- a/app/assets/javascripts/boards/models/list.js +++ b/app/assets/javascripts/boards/models/list.js @@ -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; }