Skip to content

Commit

Permalink
Merge pull request #7 from hdelossantos/master
Browse files Browse the repository at this point in the history
Clone cardConfig to resolve object is not extensible errors
  • Loading branch information
iantrich authored Mar 15, 2020
2 parents 2227989 + e54b92f commit 18d5aed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion group-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class GroupCard extends HTMLElement {
if (!cardConfig.card.type) cardConfig.card.type = 'entities';
const element = document.createElement(`hui-${cardConfig.card.type}-card`);
this.appendChild(element);
this._config = cardConfig;
this._config = JSON.parse(JSON.stringify(cardConfig));
}

set hass(hass) {
Expand Down

0 comments on commit 18d5aed

Please sign in to comment.