From f89fdc02b1c1741ba8e5155faa88637a519be4f8 Mon Sep 17 00:00:00 2001 From: Bryan Frimin Date: Wed, 18 Mar 2026 23:41:33 +0100 Subject: [PATCH] Clean up main element style on unmount in AuditsPage Add cleanup function to the useEffect that sets position: relative on the main element, so the style is restored when the component unmounts. Signed-off-by: Bryan Frimin --- apps/console/src/pages/organizations/audits/AuditsPage.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/console/src/pages/organizations/audits/AuditsPage.tsx b/apps/console/src/pages/organizations/audits/AuditsPage.tsx index 8ef0ef813..2200bbe85 100644 --- a/apps/console/src/pages/organizations/audits/AuditsPage.tsx +++ b/apps/console/src/pages/organizations/audits/AuditsPage.tsx @@ -196,6 +196,11 @@ export default function AuditsPage(props: Props) { if (mainRef.current) { mainRef.current.style.position = "relative"; } + return () => { + if (mainRef.current) { + mainRef.current.style.position = ""; + } + }; }, []); return (