fixing page totals (#93)

This commit was merged in pull request #93.
This commit is contained in:
2025-05-25 08:36:03 -05:00
committed by GitHub
parent fc5811c3b6
commit f94d0f7ca9

View File

@@ -6,7 +6,8 @@ import {
import { ILogbookEntry } from './ILogbookEntry';
const columnTotal = (info: HeaderContext<ILogbookEntry, unknown>): number => {
const values: number[] = info.table.getFilteredRowModel().rows.map((row: any) => Number(row.getValue(info.column.id))).filter((value: any) => !Number.isNaN(value));
const blah = info.table
const values: number[] = info.table.getPaginationRowModel().rows.map((row: any) => Number(row.getValue(info.column.id))).filter((value: any) => !Number.isNaN(value));
let total: number = 0;
if (values.length > 0) {