Skip to content

Commit

Permalink
[ML] Transforms: Unset doc title when app unmounts (#75539)
Browse files Browse the repository at this point in the history
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
peteharverson and elasticmachine authored Aug 21, 2020
1 parent ec44ee0 commit 659890c
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 659890c

Please sign in to comment.