Skip to content

Commit

Permalink
Merge pull request #450 from mareklibra/unbindOnLeave.sooner
Browse files Browse the repository at this point in the history
[UI] Unregister OnUnloadPage handler sooner
  • Loading branch information
mareklibra authored Jun 28, 2022
2 parents 0d1f98a + d9a381d commit f6f939e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ui/frontend/src/components/PersistPage/persist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ export const persist = async (
// delete route backup
// TODO

// Do it before onSuccess()
unbindOnBeforeUnloadPage();

onSuccess();
} finally {
unbindOnBeforeUnloadPage();
Expand Down

0 comments on commit f6f939e

Please sign in to comment.