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

+1 -1
View File
@@ -64,7 +64,7 @@ CreateMonitorButton.propTypes = {
const UptimeMonitors = () => {
// Redux state
const rowsPerPage = useSelector((state) => state.ui.monitors.rowsPerPage);
const rowsPerPage = useSelector((state) => state.ui?.monitors?.rowsPerPage ?? 10);
// Local state
const [search, setSearch] = useState(undefined);