diff --git a/src/store/modules/contests/results/index.js b/src/store/modules/contests/results/index.js index 6d7b66a..1c2f59f 100644 --- a/src/store/modules/contests/results/index.js +++ b/src/store/modules/contests/results/index.js @@ -25,7 +25,8 @@ export default { }, getters: { pageLength({ pageLimit, resultLength }) { - return Math.ceil(resultLength / pageLimit); + // 0件の時でも1ページはある + return Math.max(Math.ceil(resultLength / pageLimit), 1); }, }, actions: {