Skip to content

Commit

Permalink
add correct row count for non ssrm
Browse files Browse the repository at this point in the history
  • Loading branch information
marthasharkey committed Mar 4, 2025
1 parent 5648519 commit 803ea18
Showing 1 changed file with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -783,18 +783,17 @@ watchEffect(() => {
: dataHeader
if (!data_.is_ssrm) {
rowData.value = data_.data ? createRowsForTable(data_.data, 0, data_.is_ssrm) : []
// Update paging
const newRowCount = data_.all_rows_count == null ? 1 : data_.all_rows_count
showRowCount.value = !(data_.all_rows_count == null)
rowCount.value = newRowCount
const newPageLimit = Math.ceil(newRowCount / rowLimit.value)
pageLimit.value = newPageLimit
if (page.value > newPageLimit) {
page.value = newPageLimit
}
}
}
// Update paging
const newRowCount = data_.all_rows_count == null ? 1 : data_.all_rows_count
showRowCount.value = !(data_.all_rows_count == null)
rowCount.value = newRowCount
const newPageLimit = Math.ceil(newRowCount / rowLimit.value)
pageLimit.value = newPageLimit
if (page.value > newPageLimit) {
page.value = newPageLimit
}
})
const colTypeMap = computed(() => {
Expand Down

0 comments on commit 803ea18

Please sign in to comment.