1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-03-26 21:12:59 +02:00

Mobile: Fix potential crash when going back to OneDrive login screen

This commit is contained in:
Laurent Cozic 2018-09-23 20:45:34 +01:00
parent 34b9af2ce0
commit 14cff96713

View File

@ -147,6 +147,11 @@ function historyCanGoBackTo(route, nextRoute) {
if (route.routeName === 'Note') return false;
if (route.routeName === 'Folder') return false;
// There's no point going back to these screens in general and, at least in OneDrive case,
// it can be buggy to do so, due to incorrectly relying on global state (reg.syncTarget...)
if (route.routeName === 'OneDriveLogin') return false;
if (route.routeName === 'DropboxLogin') return false;
return true;
}