mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 20:06:08 +01:00
fix recent changes showing deleted search note, closes #1331
This commit is contained in:
@@ -38,7 +38,8 @@ async function searchFromNote(req) {
|
||||
}
|
||||
|
||||
if (note.isDeleted) {
|
||||
return [400, `Note ${req.params.noteId} is deleted.`];
|
||||
// this can be triggered from recent changes and it's harmless to return empty list rather than fail
|
||||
return [];
|
||||
}
|
||||
|
||||
if (note.type !== 'search') {
|
||||
|
||||
Reference in New Issue
Block a user