mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 16:26:43 +00:00
🐛 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:
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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user