Skip to content

Commit

Permalink
Fix deleting property from configuration (#43)
Browse files Browse the repository at this point in the history
Fixes #37
  • Loading branch information
PiotrMachowski authored Aug 12, 2021
1 parent ed1b89f commit ed5165a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ed5165a

Please sign in to comment.