Fixed pages rerendering on sidebar state change
This commit is contained in:
1 parent
aca350495a
commit
111501156f
4 files changed
+7
-5
No files matched your search
@@ -140,6 +140,7 @@ const SkeletonLayout = () => {
|
||||
* @component
|
||||
*/
|
||||
const DetailsPage = ({ isAdmin }) => {
|
||||
const theme = useTheme();
|
||||
const [monitor, setMonitor] = useState({});
|
||||
const { monitorId } = useParams();
|
||||
const { authToken } = useSelector((state) => state.auth);
|
||||
@@ -184,7 +185,6 @@ const DetailsPage = ({ isAdmin }) => {
|
||||
fetchCertificate();
|
||||
}, [authToken, monitorId]);
|
||||
|
||||
const theme = useTheme();
|
||||
let loading = Object.keys(monitor).length === 0;
|
||||
return (
|
||||
<Box className="monitor-details">
|
||||
|
||||
Reference in new issue
Block a user