diff --git a/frontend/src/js/widget/wb-pagination.js b/frontend/src/js/widget/wb-pagination.js index 5d0ff89..9c0d901 100644 --- a/frontend/src/js/widget/wb-pagination.js +++ b/frontend/src/js/widget/wb-pagination.js @@ -28,13 +28,14 @@ class WBPagination extends Component { )); - for (let idx in visible) { + for (let idx = 0; idx < visible.length; idx++) { let i = visible[idx]; + let capturePrev = prev; if (i > prev + 1) res.push((