Revert "fix(js): do not fire dangerouslySetInnerHTML if there is nothing to render. Closes #4075"
This reverts commit d91c42bafd9136805fd64018f0db517156bcb263. Closes #4112
This commit is contained in:
@@ -27,7 +27,6 @@ export const Theme: FC = () => {
|
||||
<Head>
|
||||
<meta name="theme-color" content={themeColor} />
|
||||
</Head>
|
||||
{(appearanceVariables?.keys?.length || 0) > 0 && (
|
||||
<style
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: `
|
||||
@@ -37,8 +36,6 @@ export const Theme: FC = () => {
|
||||
`,
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
{customStyles !== '' && (
|
||||
<style
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: `
|
||||
@@ -46,7 +43,6 @@ export const Theme: FC = () => {
|
||||
`,
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user