Skip to content

Commit

Permalink
only expanding saved config during config changes, so that removing v…
Browse files Browse the repository at this point in the history
…alues is possible
  • Loading branch information
catdad committed Apr 20, 2024
1 parent 76b5b62 commit d86028a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/combined-card-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ class CombinedCardEditor extends LitElement implements LovelaceCardEditor {

setConfig(config: LovelaceCardConfig): void {
this._config = {
...this._config,
// I think this won't allow removing the hidden values
// ...this._config,
...config
};

LOG('setConfig', this._config);
this._setEditorConfig(this._config as LovelaceCardConfig);
}

Expand Down

0 comments on commit d86028a

Please sign in to comment.