mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-19 02:10:04 +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>')
|
$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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user