A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix: crash when canceling backup import dialog
thecodrr8fcf59334716
diff --git a/apps/web/src/views/settings.js b/apps/web/src/views/settings.jsindex f05d3d384..56b8f5277 100644--- a/apps/web/src/views/settings.js+++ b/apps/web/src/views/settings.js@@ -41,6 +41,7 @@ function importBackup() {importFileElem.click();importFileElem.onchange = function () {const file = importFileElem.files[0];+ if (!file) return reject("No file selected.");if (!file.name.endsWith(".nnbackup")) {return reject("The given file does not have .nnbackup extension. Only files with .nnbackup extension are supported."@@ -416,6 +417,7 @@ function Settings(props) {throw new Error(error);}} catch (e) {+ console.error(e);await showToast("error",`Could not restore the backup. Error message: ${diff --git a/apps/web/yarn.lock b/apps/web/yarn.lockindex 545f05d06..b86b569ad 100644--- a/apps/web/yarn.lock+++ b/apps/web/yarn.lock@@ -1924,7 +1924,7 @@fastq "^1.6.0""@notesnook/desktop@./desktop/":- version "1.5.0"+ version "1.5.1"dependencies:diary "^0.1.6"electron-better-ipc "^2.0.1"@@ -8636,9 +8636,22 @@ normalize-url@^3.0.0:resolved "https://registry.npmjs.org/normalize-url/-/normalize-url-3.3.0.tgz"integrity sha512-U+JJi7duF1o+u2pynbp2zXDW2/PADgC30f0GsHZtRh+HOcXHnw137TrNlyxxRvWW5fjKd3bcLHPxofWuCjaeZg==+notes-core@../notesnook-core/:+ version "6.8.2"+ dependencies:+ "@stablelib/blake2s" "^1.0.1"+ dayjs "^1.10.6"+ fast-sort "^2.0.1"+ lean-he "^2.1.2"+ no-internet "^1.5.2"+ qclone "^1.0.4"+ quill-delta-to-html "^0.12.0"+ showdown "https://github.com/thecodrr/showdown"+ spark-md5 "^3.0.1"+"notes-core@git+https://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:[email protected]/streetwriters/notesnook-core.git":version "6.8.2"- resolved "git+https://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:[email protected]/streetwriters/notesnook-core.git#9f6479b5fc5375b74e58fb8b731085f4709eaa48"+ resolved "git+https://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:[email protected]/streetwriters/notesnook-core.git#4618ca4842361fa479e82c2c604920198c0fea17"dependencies:"@stablelib/blake2s" "^1.0.1"dayjs "^1.10.6"