Fix visibility save in dashboard edit (#20013)

Visibility fix
This commit is contained in:
Simon Lamon 2024-03-07 15:12:02 +01:00 committed by Bram Kragten
parent 0ae1f11ffc
commit 58a607561a

View File

@ -472,7 +472,10 @@ export class HuiDialogEditView extends LitElement {
ev: HASSDomEvent<ViewVisibilityChangeEvent>
): void {
if (ev.detail.visible && this._config) {
this._config.visible = ev.detail.visible;
this._config = {
...this._config,
visible: ev.detail.visible,
};
}
this._dirty = true;
}