From 52c8554d89d6a0c11c6655a8d50ff76d36e9cec4 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 7651d9c530..78517e3bae 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 @@ -496,8 +496,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; }