mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-18 17:31:53 +08:00
client: recent changes list: properly handle clicks on items referencing deleted notes
This commit is contained in:
parent
0417a6e144
commit
5caf4c2461
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user