From b55baef98567fe4765a0953a6b1c9742461756f4 Mon Sep 17 00:00:00 2001 From: Simon Lamon <32477463+silamon@users.noreply.github.com> Date: Thu, 7 Mar 2024 15:12:02 +0100 Subject: [PATCH] Fix visibility save in dashboard edit (#20013) Visibility fix --- .../lovelace/editor/view-editor/hui-dialog-edit-view.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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..7651d9c530 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 @@ -472,7 +472,10 @@ export class HuiDialogEditView extends LitElement { ev: HASSDomEvent ): void { if (ev.detail.visible && this._config) { - this._config.visible = ev.detail.visible; + this._config = { + ...this._config, + visible: ev.detail.visible, + }; } this._dirty = true; }