From 62b169bc6b71b8857737b3ddf9a4a6da53151766 Mon Sep 17 00:00:00 2001 From: Alejandro Rosado Date: Thu, 25 Aug 2022 13:18:20 -0400 Subject: [PATCH] (#567) Hospital/Institution invalid params page loads scrolled to the bottom of the page - ErrorPage now scrolls to top on load --- src/views/ErrorPage/ErrorPage.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/views/ErrorPage/ErrorPage.jsx b/src/views/ErrorPage/ErrorPage.jsx index 8523c1e3..337c1fb0 100644 --- a/src/views/ErrorPage/ErrorPage.jsx +++ b/src/views/ErrorPage/ErrorPage.jsx @@ -34,6 +34,7 @@ const ErrorPage = ({ initErrorsList }) => { } useEffect(() => { + window.scrollTo(0, 0); const pageTitle = 'Errors Occurred'; // Fire off page load event