From 048acbce88b029f06ee8f03b007cfecf8e0ae0c2 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Wed, 8 Jan 2025 15:10:35 -0800 Subject: [PATCH] fix(js): do not fire dangerouslySetInnerHTML if there is nothing to render. Closes #4075 (#4076) --- web/components/theme/Theme.tsx | 24 ++++++++++++++---------- web/package.json | 2 +- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/web/components/theme/Theme.tsx b/web/components/theme/Theme.tsx index 70ab0013a..31fb291ab 100644 --- a/web/components/theme/Theme.tsx +++ b/web/components/theme/Theme.tsx @@ -27,22 +27,26 @@ export const Theme: FC = () => { -