Skip to content

Commit

Permalink
[ML] Transforms: Unset doc title when app unmounts (#75539) (#75627)
Browse files Browse the repository at this point in the history
Co-authored-by: Elastic Machine <[email protected]>

Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
peteharverson and elasticmachine authored Aug 21, 2020
1 parent 47bed31 commit ea63cc6
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,10 @@ export async function mountManagementSection(
history,
};

return renderApp(element, appDependencies);
const unmountAppCallback = renderApp(element, appDependencies);

return () => {
docTitle.reset();
unmountAppCallback();
};
}

0 comments on commit ea63cc6

Please sign in to comment.