hotfix: 3.4.4, fix not being able to import backup

This commit is contained in:
Baptiste Grob
2020-09-10 20:35:38 +02:00
parent cb2115c0d6
commit f440eaa692
5 changed files with 5 additions and 5 deletions

View File

@@ -347,7 +347,7 @@ class AccountMenuCtrl extends PureCtrl {
return;
}
const version = data.version || data.auth_params?.version || data?.keyParams?.version;
if (!protocolManager.supportedVersions().includes(version)) {
if (version && !protocolManager.supportedVersions().includes(version)) {
this.setState({ importData: null });
this.alertManager.alert({ text: STRING_IMPORT_FAILED_NEWER_BACKUP });
return;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
package-lock.json generated
View File

@@ -1,6 +1,6 @@
{
"name": "standard-notes-web",
"version": "3.4.3",
"version": "3.4.4",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@@ -1,6 +1,6 @@
{
"name": "standard-notes-web",
"version": "3.4.3",
"version": "3.4.4",
"license": "AGPL-3.0-or-later",
"repository": {
"type": "git",