mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix autocomplete casing issue with first level notes
This commit is contained in:
parent
a684879b91
commit
2a53bb03ae
@ -109,7 +109,7 @@ function search(noteId, tokens, path, results) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const parents = childToParent[noteId];
|
const parents = childToParent[noteId];
|
||||||
if (!parents) {
|
if (!parents || noteId === 'root') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -119,11 +119,11 @@ function search(noteId, tokens, path, results) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// archived must be inheritable
|
// archived must be inheritable
|
||||||
if (parentNoteId === 'root' || archived[parentNoteId] === 1) {
|
if (archived[parentNoteId] === 1) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
const title = getNoteTitle(noteId, parentNoteId);
|
const title = getNoteTitle(noteId, parentNoteId).toLowerCase();
|
||||||
const foundTokens = [];
|
const foundTokens = [];
|
||||||
|
|
||||||
for (const token of tokens) {
|
for (const token of tokens) {
|
||||||
|
@ -65,6 +65,7 @@ async function updateEntity(entity) {
|
|||||||
delete clone.jsonContent;
|
delete clone.jsonContent;
|
||||||
delete clone.isOwned;
|
delete clone.isOwned;
|
||||||
delete clone.isChanged;
|
delete clone.isChanged;
|
||||||
|
delete clone.__attributeCache;
|
||||||
|
|
||||||
for (const key in clone) {
|
for (const key in clone) {
|
||||||
// !isBuffer is for images and attachments
|
// !isBuffer is for images and attachments
|
||||||
|
Loading…
x
Reference in New Issue
Block a user