Skip to content

Commit

Permalink
Clean up doc title when navigating away from Snapshot Restore. (elast…
Browse files Browse the repository at this point in the history
…ic#67906)

Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
cjcenizal and elasticmachine committed Jun 3, 2020
1 parent 4035283 commit 43ef105
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,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 43ef105

Please sign in to comment.