Skip to content

Commit

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

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 088834d commit 9ae8cc0
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 9ae8cc0

Please sign in to comment.