change the starting page to 0 for the table

This commit is contained in:
csawatzky 2025-03-03 12:06:53 -06:00
parent 9b274b9e16
commit 44a31dcd2b
2 changed files with 3 additions and 3 deletions

View file

@ -270,12 +270,12 @@ export default function SmartBreadcrumb(props: Props) {
if (prependPaths) pathnames.unshift(...prependPaths)
console.log(pathnames)
//console.log(pathnames)
pathnames.forEach((_value: any, index: any) => {
const lastPath = index === pathnames.length - 1;
console.log(lastPath)
//console.log(lastPath)
const to = `/${pathnames.slice(0, index + 1).join("/")}`;
let label = breadcrumbMap[to];

View file

@ -120,7 +120,7 @@ export default function DeviceComponent() {
getDefaultInteraction()
);
const [pageSize, setPageSize] = useState<number>(5);
const [page, setPage] = useState(1)
const [page, setPage] = useState(0)
const [order, setOrder] = useState("desc")
const [rows, setRows] = useState<convertedUnitMeasurement[]>([])
const [total, setTotal] = useState<number>(0)