mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-14 21:40:27 +00:00
Close new automation dialog before moving to next step (#9071)
* Close new automatin dialog before next step * Update dialog-thingtalk.ts * Fix Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
@@ -97,7 +97,7 @@ export const closeDialog = async (dialogTag: string): Promise<boolean> => {
|
||||
if (!(dialogTag in LOADED)) {
|
||||
return true;
|
||||
}
|
||||
const dialogElement = await LOADED[dialogTag];
|
||||
const dialogElement: HassDialog = await LOADED[dialogTag];
|
||||
if (dialogElement.closeDialog) {
|
||||
return dialogElement.closeDialog() !== false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user