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