change the starting page to 0 for the table
This commit is contained in:
parent
9b274b9e16
commit
44a31dcd2b
2 changed files with 3 additions and 3 deletions
|
|
@ -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];
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue