From 0ae1f11ffcd4b0f81d5d3d91d18d86828f05a76b Mon Sep 17 00:00:00 2001 From: Simon Lamon <32477463+silamon@users.noreply.github.com> Date: Thu, 7 Mar 2024 15:12:56 +0100 Subject: [PATCH] Fix removal of badges after yaml dashboard change (#20012) * Fix badges removed after yaml change * Remove test code --- src/panels/lovelace/editor/view-editor/hui-dialog-edit-view.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/panels/lovelace/editor/view-editor/hui-dialog-edit-view.ts b/src/panels/lovelace/editor/view-editor/hui-dialog-edit-view.ts index 498a7890dc..dfb3afc704 100644 --- a/src/panels/lovelace/editor/view-editor/hui-dialog-edit-view.ts +++ b/src/panels/lovelace/editor/view-editor/hui-dialog-edit-view.ts @@ -493,8 +493,7 @@ export class HuiDialogEditView extends LitElement { if (!ev.detail.isValid) { return; } - const { badges, ...config } = ev.detail.value; - this._config = config; + this._config = ev.detail.value; this._dirty = true; }