mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 00:05:50 +01:00
fix problems with updating note in note cache when entities are coming out of order (e.g. sync)
This commit is contained in:
@@ -84,9 +84,7 @@ class NoteCacheFlatTextExp extends Expression {
|
||||
const foundAttrTokens = [];
|
||||
|
||||
for (const token of this.tokens) {
|
||||
// not clear why, but sometimes note.type or note.mime is undefined
|
||||
if ((note.type && note.type.includes(token))
|
||||
|| (note.mime && note.mime.includes(token))) {
|
||||
if (note.type.includes(token) || note.mime.includes(token)) {
|
||||
foundAttrTokens.push(token);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user