From 2d251472a0d255bc2c8a694fde26727c9cfadbb9 Mon Sep 17 00:00:00 2001 From: Katrin Yordanova Date: Tue, 28 Mar 2023 15:51:11 +0300 Subject: [PATCH] Fix NaN in CResourceList pagination --- lib/vue/src/components/resourceList/CResourceList.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/vue/src/components/resourceList/CResourceList.vue b/lib/vue/src/components/resourceList/CResourceList.vue index ce35ee92c..87f59d314 100644 --- a/lib/vue/src/components/resourceList/CResourceList.vue +++ b/lib/vue/src/components/resourceList/CResourceList.vue @@ -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,