mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 17:56:46 +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;
|
return;
|
||||||
}
|
}
|
||||||
if (target.configValue) {
|
if (target.configValue) {
|
||||||
if (target.value === "") {
|
if (target.value === "" && target.configValue !== "content") {
|
||||||
delete this._config[target.configValue!];
|
delete this._config[target.configValue!];
|
||||||
} else {
|
} else {
|
||||||
this._config = {
|
this._config = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user