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 6e54cf4 commit 2bc216d
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 2bc216d

Please sign in to comment.