mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Remove onAppLeave in useEffectCleanup to prevent confirm when leaving from listing page (#89041) (#89212)
This commit is contained in:
parent
a0d9f75f02
commit
1ef7e12ae9
1 changed files with 4 additions and 0 deletions
|
@ -147,6 +147,10 @@ const TopNav = ({
|
|||
}
|
||||
return actions.default();
|
||||
});
|
||||
return () => {
|
||||
// reset on app leave handler so leaving from the listing page doesn't trigger a confirmation
|
||||
onAppLeave((actions) => actions.default());
|
||||
};
|
||||
}, [
|
||||
onAppLeave,
|
||||
originatingApp,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue