3
0

Fix NaN in CResourceList pagination

This commit is contained in:
Katrin Yordanova
2023-03-28 15:51:11 +03:00
parent 65d226a903
commit 2d251472a0

View File

@@ -308,7 +308,8 @@ export default {
},
getPagination () {
const { total = 0, limit = 10, page = 1 } = this.pagination
let { total = 0, limit = 10, page = 1 } = this.pagination
total = isNaN(total) ? 0 : total
const pagination = {
from: ((page - 1) * limit) + 1,