diff --git a/src/editor.ts b/src/editor.ts index 639ffd2..a1bfc0b 100644 --- a/src/editor.ts +++ b/src/editor.ts @@ -275,7 +275,9 @@ export class BoilerplateCardEditor extends LitElement implements LovelaceCardEdi } if (target.configValue) { if (target.value === '') { - delete this._config[target.configValue]; + const tmpConfig = {...this._config}; + delete tmpConfig[target.configValue]; + this._config = tmpConfig; } else { this._config = { ...this._config,