Browse Source

fix(nc-gui): wrong math on offset calculation

pull/3818/head
Wing-Kam Wong 2 years ago
parent
commit
487b289afa
  1. 2
      packages/nc-gui/components/smartsheet/Kanban.vue

2
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 stackTitle = e.target.getAttribute('data-stack-title')
const pageSize = appInfo.defaultLimit || 25 const pageSize = appInfo.defaultLimit || 25
const page = Math.ceil(formattedData.value[stackTitle].length / pageSize) const page = Math.ceil(formattedData.value[stackTitle].length / pageSize)
await loadMoreKanbanData(stackTitle, { offset: (page - 1) * pageSize }) await loadMoreKanbanData(stackTitle, { offset: page * pageSize })
} }
} }

Loading…
Cancel
Save