Fix reload mounts callback when doing changes in dialog (#16615)

This commit is contained in:
Joakim Sørensen 2023-05-24 15:31:41 +03:00 committed by GitHub
parent c1748138a8
commit 85acafe8a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -269,7 +269,7 @@ class HaConfigSectionStorage extends LitElement {
private _addMount(): void {
showMountViewDialog(this, {
reloadMounts: this._reloadMounts,
reloadMounts: () => this._reloadMounts(),
});
}
@ -277,7 +277,7 @@ class HaConfigSectionStorage extends LitElement {
ev.stopPropagation();
showMountViewDialog(this, {
mount: (ev.currentTarget as any).mount,
reloadMounts: this._reloadMounts,
reloadMounts: () => this._reloadMounts(),
});
}