[ML] Transforms: Unset doc title when app unmounts (#75539)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
parent
ec44ee0dc9
commit
659890cc91
|
@ -49,5 +49,10 @@ export async function mountManagementSection(
|
|||
history,
|
||||
};
|
||||
|
||||
return renderApp(element, appDependencies);
|
||||
const unmountAppCallback = renderApp(element, appDependencies);
|
||||
|
||||
return () => {
|
||||
docTitle.reset();
|
||||
unmountAppCallback();
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue