From 247e3e8d93c3eeb4cac4585958e1770cc8f63503 Mon Sep 17 00:00:00 2001 From: Matiss Janis Aboltins <matiss@mja.lv> Date: Thu, 27 Jun 2024 19:00:17 +0100 Subject: [PATCH] :bug: fix the app randomly navigating back (closing) (#2772) --- packages/desktop-client/src/hooks/useNavigate.ts | 3 --- upcoming-release-notes/2772.md | 6 ++++++ 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 upcoming-release-notes/2772.md diff --git a/packages/desktop-client/src/hooks/useNavigate.ts b/packages/desktop-client/src/hooks/useNavigate.ts index 5f05bb2b1..4361ebc02 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 000000000..4982b5a0f --- /dev/null +++ b/upcoming-release-notes/2772.md @@ -0,0 +1,6 @@ +--- +category: Bugfix +authors: [MatissJanis] +--- + +Fix the app randomly closing -- GitLab