From 1cdd644b8f9c683c4699a69d9a9484f7fe846996 Mon Sep 17 00:00:00 2001 From: zadam Date: Tue, 12 Oct 2021 19:47:44 +0200 Subject: [PATCH] fix reloading frontend after erasing notes in firefox, fixes #2221 --- package.json | 2 +- src/public/app/services/branches.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f5e385d5f..0d107ab4f 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 b93e3057a..9a3a133fd 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; }