diff --git a/src/panels/lovelace/editor/hui-edit-view.ts b/src/panels/lovelace/editor/hui-edit-view.ts index a6ed38966d..b73f3aca6a 100644 --- a/src/panels/lovelace/editor/hui-edit-view.ts +++ b/src/panels/lovelace/editor/hui-edit-view.ts @@ -79,7 +79,7 @@ export class HuiEditView extends hassLocalizeLitMixin(LitElement) { ) { const { cards, badges, ...viewConfig } = this.viewConfig; this._config = viewConfig; - this._badges = processEditorEntities(badges); + this._badges = badges ? processEditorEntities(badges) : []; } else if (changedProperties.has("add")) { this._config = {}; this._badges = [];