mirror of
https://github.com/zadam/trilium.git
synced 2025-11-14 01:05:49 +01:00
note cache fixes, #1805
This commit is contained in:
@@ -18,7 +18,7 @@ class RelationWhereExp extends Expression {
|
||||
for (const attr of noteCache.findAttributes('relation', this.relationName)) {
|
||||
const note = attr.note;
|
||||
|
||||
if (inputNoteSet.hasNoteId(note.noteId)) {
|
||||
if (inputNoteSet.hasNoteId(note.noteId) && attr.targetNote) {
|
||||
const subInputNoteSet = new NoteSet([attr.targetNote]);
|
||||
const subResNoteSet = this.subExpression.execute(subInputNoteSet, executionContext);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user