From 44a31dcd2bdcc9f47a4d3a3b3c5d064093897902 Mon Sep 17 00:00:00 2001 From: csawatzky Date: Mon, 3 Mar 2025 12:06:53 -0600 Subject: [PATCH] change the starting page to 0 for the table --- src/common/SmartBreadcrumb.tsx | 4 ++-- src/pages/DeviceComponent.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/SmartBreadcrumb.tsx b/src/common/SmartBreadcrumb.tsx index a46c454..aa0202c 100644 --- a/src/common/SmartBreadcrumb.tsx +++ b/src/common/SmartBreadcrumb.tsx @@ -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]; diff --git a/src/pages/DeviceComponent.tsx b/src/pages/DeviceComponent.tsx index 9bff22a..117d8b7 100644 --- a/src/pages/DeviceComponent.tsx +++ b/src/pages/DeviceComponent.tsx @@ -120,7 +120,7 @@ export default function DeviceComponent() { getDefaultInteraction() ); const [pageSize, setPageSize] = useState(5); - const [page, setPage] = useState(1) + const [page, setPage] = useState(0) const [order, setOrder] = useState("desc") const [rows, setRows] = useState([]) const [total, setTotal] = useState(0)