Skip to content

Build your personal knowledge base with Trilium Notes

fix reloading frontend after erasing notes in firefox, fixes #2221

zadam1cdd644b8f9c
diff --git a/package.json b/package.json
index f5e385d5fc..0d107ab4fa 100644
--- a/package.json
+++ b/package.json
@@ -26,7 +26,7 @@
"dependencies": {
"archiver": "5.3.0",
"async-mutex": "0.3.2",
- "axios": "0.22.0",
+ "axios": "0.23.0",
"better-sqlite3": "7.4.3",
"body-parser": "1.19.0",
"chokidar": "3.5.2",
diff --git a/src/public/app/services/branches.js b/src/public/app/services/branches.js
index b93e3057a3..9a3a133fd3 100644
--- a/src/public/app/services/branches.js
+++ b/src/public/app/services/branches.js
@@ -109,6 +109,10 @@ async function deleteNotes(branchIdsToDelete) {
}
}
+ if (eraseNotes) {
+ utils.reloadFrontendApp("erasing notes requires reload");
+ }
+
return true;
}