mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +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>')
|
$changesList.append($('<li>')
|
||||||
.on("click", (e) => {
|
.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
|
// Open the current note
|
||||||
appContext.tabManager.getActiveContext().setNote(change.noteId);
|
appContext.tabManager.getActiveContext().setNote(change.noteId);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user