From 88150853ddc41650d829e2019eae6f174e47d15e Mon Sep 17 00:00:00 2001 From: nicolethoen Date: Thu, 22 Feb 2024 14:39:42 -0500 Subject: [PATCH] fix build --- src/app/AppLayout/AppLayout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/AppLayout/AppLayout.tsx b/src/app/AppLayout/AppLayout.tsx index 90d4f7a7..b63a6228 100644 --- a/src/app/AppLayout/AppLayout.tsx +++ b/src/app/AppLayout/AppLayout.tsx @@ -35,7 +35,7 @@ const AppLayout: React.FunctionComponent = ({ children }) => { const toggleDarkTheme = (_evt, selected) => { const darkThemeToggleClicked = !selected === isDarkTheme - document.querySelector('html').classList.toggle('pf-v5-theme-dark', darkThemeToggleClicked); + document.querySelector('html')?.classList.toggle('pf-v5-theme-dark', darkThemeToggleClicked); setIsDarkTheme(darkThemeToggleClicked); };