diff --git a/src/panels/lovelace/editor/config-elements/hui-stack-card-editor.ts b/src/panels/lovelace/editor/config-elements/hui-stack-card-editor.ts index 595eae1866..c08c959c22 100644 --- a/src/panels/lovelace/editor/config-elements/hui-stack-card-editor.ts +++ b/src/panels/lovelace/editor/config-elements/hui-stack-card-editor.ts @@ -85,7 +85,7 @@ export class HuiStackCardEditor @state() protected _guiModeAvailable? = true; - protected _keys = new WeakMap(); + protected _keys = new Map(); protected _schema: readonly HaFormSchema[] = SCHEMA; @@ -203,7 +203,7 @@ export class HuiStackCardEditor > ${keyed( - this._getKey(this._config.cards[selected]), + this._getKey(this._config.cards, selected), html`