diff --git a/src/panels/lovelace/editor/config-elements/hui-markdown-card-editor.ts b/src/panels/lovelace/editor/config-elements/hui-markdown-card-editor.ts index 22f60e30ce..41a20f070b 100644 --- a/src/panels/lovelace/editor/config-elements/hui-markdown-card-editor.ts +++ b/src/panels/lovelace/editor/config-elements/hui-markdown-card-editor.ts @@ -100,7 +100,7 @@ export class HuiMarkdownCardEditor extends LitElement return; } if (target.configValue) { - if (target.value === "") { + if (target.value === "" && target.configValue !== "content") { delete this._config[target.configValue!]; } else { this._config = {