mirror of
https://github.com/zadam/trilium.git
synced 2025-10-26 07:46:30 +01:00
client: recent changes list: properly handle clicks on items referencing deleted notes
This commit is contained in:
@@ -121,7 +121,8 @@ export default class RecentChangesDialog extends BasicWidget {
|
||||
|
||||
$changesList.append($('<li>')
|
||||
.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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user