Skip to content

Commit

Permalink
[ML] Transforms: Unset doc title when app unmounts (elastic#75539)
Browse files Browse the repository at this point in the history
Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
2 people authored and thomasneirynck committed Aug 21, 2020
1 parent 258591e commit 0f456f1
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 0f456f1

Please sign in to comment.