🐛 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:
committed by
Bram Kragten
parent
32fd7a51f4
commit
729a5e385f
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user