diff --git a/frontend/src/lib/components/apps/editor/AppPreview.svelte b/frontend/src/lib/components/apps/editor/AppPreview.svelte index 8200acc3aa..6825c0e3e7 100644 --- a/frontend/src/lib/components/apps/editor/AppPreview.svelte +++ b/frontend/src/lib/components/apps/editor/AppPreview.svelte @@ -164,8 +164,12 @@ link.id = cssId link.innerHTML = cssString head.appendChild(link) - } else if (existingElement && cssString) { - existingElement.innerHTML = cssString + } else if (existingElement) { + if (cssString) { + existingElement.innerHTML = cssString + } else { + existingElement.innerHTML = '' + } } } }