From f5657d9fdc3b3a647944e2b95da546b2c770beba Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Sat, 6 May 2023 14:10:13 -0700 Subject: [PATCH] fix: provide fallback empty object for appearance variables --- web/components/theme/Theme.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/components/theme/Theme.tsx b/web/components/theme/Theme.tsx index ec9356737..901d1ff52 100644 --- a/web/components/theme/Theme.tsx +++ b/web/components/theme/Theme.tsx @@ -8,7 +8,7 @@ export const Theme: FC = () => { const clientConfig = useRecoilValue(clientConfigStateAtom); const { appearanceVariables, customStyles } = clientConfig; - const appearanceVars = Object.keys(appearanceVariables) + const appearanceVars = Object.keys(appearanceVariables || {}) .filter(variable => !!appearanceVariables[variable]) .map(variable => `--${variable}: ${appearanceVariables[variable]}`);