Clean up doc title when navigating away from Snapshot Restore. (#67906)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
parent
3b43821401
commit
f190fd22a2
1 changed files with 7 additions and 1 deletions
|
@ -45,5 +45,11 @@ export async function mountManagementSection(
|
|||
},
|
||||
};
|
||||
|
||||
return renderApp(element, appDependencies);
|
||||
const unmountAppCallback = renderApp(element, appDependencies);
|
||||
|
||||
return () => {
|
||||
// Change tab label back to Kibana.
|
||||
docTitle.reset();
|
||||
unmountAppCallback();
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue