safe rowsPerPage access
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user