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 GitHub
parent b593b15f27
commit b55baef985
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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;
}