Skip to content

Commit

Permalink
[7.x] Clean up doc title when navigating away from Snapshot Restore. (#…
Browse files Browse the repository at this point in the history
…67906) (#68138)

Co-authored-by: Elastic Machine <[email protected]>

Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
cjcenizal and elasticmachine authored Jun 3, 2020
1 parent dae28ce commit 6738516
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
}

0 comments on commit 6738516

Please sign in to comment.