diff --git a/packages/desktop-client/src/hooks/useNavigate.ts b/packages/desktop-client/src/hooks/useNavigate.ts index 4361ebc022a77edb22eb099fe4cd9e15fb40ca12..5f05bb2b1e666e9cf16350e460b3a038b9980e13 100644 --- a/packages/desktop-client/src/hooks/useNavigate.ts +++ b/packages/desktop-client/src/hooks/useNavigate.ts @@ -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); } } }, diff --git a/upcoming-release-notes/2772.md b/upcoming-release-notes/2772.md deleted file mode 100644 index 4982b5a0f13b8b5963cbfc9e9ee0cd5c605c5870..0000000000000000000000000000000000000000 --- a/upcoming-release-notes/2772.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -category: Bugfix -authors: [MatissJanis] ---- - -Fix the app randomly closing