mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 07:16:39 +00:00
Fix view without badges (#2192)
This commit is contained in:
parent
2fe1d04eb0
commit
bbe90c1683
@ -79,7 +79,7 @@ export class HuiEditView extends hassLocalizeLitMixin(LitElement) {
|
|||||||
) {
|
) {
|
||||||
const { cards, badges, ...viewConfig } = this.viewConfig;
|
const { cards, badges, ...viewConfig } = this.viewConfig;
|
||||||
this._config = viewConfig;
|
this._config = viewConfig;
|
||||||
this._badges = processEditorEntities(badges);
|
this._badges = badges ? processEditorEntities(badges) : [];
|
||||||
} else if (changedProperties.has("add")) {
|
} else if (changedProperties.has("add")) {
|
||||||
this._config = {};
|
this._config = {};
|
||||||
this._badges = [];
|
this._badges = [];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user