mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 15:55:52 +01:00
fixes
This commit is contained in:
@@ -22,10 +22,12 @@ class NoteFlatTextExp extends Expression {
|
||||
* @param {string[]} tokens
|
||||
* @param {string[]} path
|
||||
*/
|
||||
function searchDownThePath(note, tokens, path) {
|
||||
const searchDownThePath = (note, tokens, path) => {
|
||||
if (tokens.length === 0) {
|
||||
const retPath = this.getNotePath(note, path);
|
||||
|
||||
console.log(retPath);
|
||||
|
||||
if (retPath) {
|
||||
const noteId = retPath[retPath.length - 1];
|
||||
|
||||
@@ -136,7 +138,7 @@ class NoteFlatTextExp extends Expression {
|
||||
return note.getBestNotePath();
|
||||
} else {
|
||||
const closestNoteId = path[0];
|
||||
const closestNoteBestNotePath = becca.getNote(closestNoteId).getBestNotePathString();
|
||||
const closestNoteBestNotePath = becca.getNote(closestNoteId).getBestNotePath();
|
||||
|
||||
return [...closestNoteBestNotePath, ...path.slice(1)];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user