safe rowsPerPage access

This commit is contained in:
Alex Holliday committed 2025-06-16 09:44:21 +08:00
1 parent cb35dc591c
commit 20e32fad04
4 files changed
+4 -4

No files matched your search

@@ -23,7 +23,7 @@ const BREADCRUMBS = [{ name: `infrastructure`, path: "/infrastructure" }];
const InfrastructureMonitors = () => {
// Redux state
const rowsPerPage = useSelector((state) => state.ui.infrastructure.rowsPerPage);
const rowsPerPage = useSelector((state) => state.ui?.infrastructure?.rowsPerPage ?? 5);
const dispatch = useDispatch();
// Local state