From 5caf4c24617286ea56d9876701401c5ec86b4fa8 Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Fri, 13 Dec 2024 02:48:33 +0200 Subject: [PATCH] client: recent changes list: properly handle clicks on items referencing deleted notes --- src/public/app/widgets/dialogs/recent_changes.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/public/app/widgets/dialogs/recent_changes.js b/src/public/app/widgets/dialogs/recent_changes.js index ff3a2ad61..bbcfce2f1 100644 --- a/src/public/app/widgets/dialogs/recent_changes.js +++ b/src/public/app/widgets/dialogs/recent_changes.js @@ -121,7 +121,8 @@ export default class RecentChangesDialog extends BasicWidget { $changesList.append($('
  • ') .on("click", (e) => { - if (e.target?.nodeName !== "A") { // Ignore clicks on the link + // Skip clicks on the link or deleted notes + if (e.target?.nodeName !== "A" && !change.current_isDeleted) { // Open the current note appContext.tabManager.getActiveContext().setNote(change.noteId); }