Revert "🐛 fix the app randomly navigating back (closing) (#2772)" (#2966)

This reverts commit 247e3e8d93.
This commit is contained in:
Matiss Janis Aboltins
2024-07-02 21:23:33 +01:00
committed by GitHub
parent 2d4256b239
commit 7f30680fb3
2 changed files with 3 additions and 6 deletions

View File

@@ -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);
}
}
},

View File

@@ -1,6 +0,0 @@
---
category: Bugfix
authors: [MatissJanis]
---
Fix the app randomly closing