From 487b289afaaa81b8b7e719c7a04c3d67bca9dafc Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Thu, 15 Sep 2022 14:06:07 +0800 Subject: [PATCH] fix(nc-gui): wrong math on offset calculation --- packages/nc-gui/components/smartsheet/Kanban.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui/components/smartsheet/Kanban.vue b/packages/nc-gui/components/smartsheet/Kanban.vue index a8dbe2affa..7a800c2d9f 100644 --- a/packages/nc-gui/components/smartsheet/Kanban.vue +++ b/packages/nc-gui/components/smartsheet/Kanban.vue @@ -156,7 +156,7 @@ const kanbanListScrollHandler = async (e: any) => { const stackTitle = e.target.getAttribute('data-stack-title') const pageSize = appInfo.defaultLimit || 25 const page = Math.ceil(formattedData.value[stackTitle].length / pageSize) - await loadMoreKanbanData(stackTitle, { offset: (page - 1) * pageSize }) + await loadMoreKanbanData(stackTitle, { offset: page * pageSize }) } }