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:
CJ Cenizal 2020-06-03 10:07:59 -07:00 committed by GitHub
parent 3b43821401
commit f190fd22a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();
};
}