[ML] Transforms: Unset doc title when app unmounts (#75539)

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
Pete Harverson 2020-08-21 09:25:17 +01:00 committed by GitHub
parent ec44ee0dc9
commit 659890cc91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,5 +49,10 @@ export async function mountManagementSection(
history,
};
return renderApp(element, appDependencies);
const unmountAppCallback = renderApp(element, appDependencies);
return () => {
docTitle.reset();
unmountAppCallback();
};
}