Skip to content

Commit

Permalink
Revert ":bug: fix the app randomly navigating back (closing) (#2772)" (
Browse files Browse the repository at this point in the history
…#2966)

This reverts commit 247e3e8.
  • Loading branch information
MatissJanis authored Jul 2, 2024
1 parent 2d4256b commit 7f30680
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 3 additions & 0 deletions packages/desktop-client/src/hooks/useNavigate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ export function useNavigate(): NavigateFunction {
JSON.stringify(previousOriginalState)
) {
navigate(to, optionsWithPrevLocation);
} else {
// `to` is the same as the previous location. Just go back.
navigate(-1);
}
}
},
Expand Down
6 changes: 0 additions & 6 deletions upcoming-release-notes/2772.md

This file was deleted.

0 comments on commit 7f30680

Please sign in to comment.