safe rowsPerPage access
This commit is contained in:
1 parent
cb35dc591c
commit
20e32fad04
4 files changed
+4
-4
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user