🐛 don't remove key when value is empty (#4583)

* 🐛 don't remove key when value is empty

* only restrict delete to required field
This commit is contained in:
Ian Richardson 2020-01-24 15:12:14 -06:00 committed by Bram Kragten
parent 32fd7a51f4
commit 729a5e385f

View File

@ -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 = {