mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08:00 
			
		
		
		
	fixes
This commit is contained in:
		
							parent
							
								
									a1d4e062ed
								
							
						
					
					
						commit
						2e794ee38f
					
				| @ -12,7 +12,6 @@ const TaskContext = require("../../services/task_context"); | |||||||
| const dayjs = require("dayjs"); | const dayjs = require("dayjs"); | ||||||
| const utc = require('dayjs/plugin/utc'); | const utc = require('dayjs/plugin/utc'); | ||||||
| const eventService = require("../../services/events"); | const eventService = require("../../services/events"); | ||||||
| const froca = require("../../public/app/services/froca.js"); |  | ||||||
| dayjs.extend(utc); | dayjs.extend(utc); | ||||||
| 
 | 
 | ||||||
| const LABEL = 'label'; | const LABEL = 'label'; | ||||||
| @ -1201,7 +1200,7 @@ class BNote extends AbstractBeccaEntity { | |||||||
|         const notePaths = this.getAllNotePaths().map(path => ({ |         const notePaths = this.getAllNotePaths().map(path => ({ | ||||||
|             notePath: path, |             notePath: path, | ||||||
|             isInHoistedSubTree: isHoistedRoot || path.includes(hoistedNoteId), |             isInHoistedSubTree: isHoistedRoot || path.includes(hoistedNoteId), | ||||||
|             isArchived: path.some(noteId => froca.notes[noteId].isArchived), |             isArchived: path.some(noteId => this.becca.notes[noteId].isArchived), | ||||||
|             isHidden: path.includes('_hidden') |             isHidden: path.includes('_hidden') | ||||||
|         })); |         })); | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -22,10 +22,12 @@ class NoteFlatTextExp extends Expression { | |||||||
|          * @param {string[]} tokens |          * @param {string[]} tokens | ||||||
|          * @param {string[]} path |          * @param {string[]} path | ||||||
|          */ |          */ | ||||||
|         function searchDownThePath(note, tokens, path) { |         const searchDownThePath = (note, tokens, path) => { | ||||||
|             if (tokens.length === 0) { |             if (tokens.length === 0) { | ||||||
|                 const retPath = this.getNotePath(note, path); |                 const retPath = this.getNotePath(note, path); | ||||||
| 
 | 
 | ||||||
|  |                 console.log(retPath); | ||||||
|  | 
 | ||||||
|                 if (retPath) { |                 if (retPath) { | ||||||
|                     const noteId = retPath[retPath.length - 1]; |                     const noteId = retPath[retPath.length - 1]; | ||||||
| 
 | 
 | ||||||
| @ -136,7 +138,7 @@ class NoteFlatTextExp extends Expression { | |||||||
|             return note.getBestNotePath(); |             return note.getBestNotePath(); | ||||||
|         } else { |         } else { | ||||||
|             const closestNoteId = path[0]; |             const closestNoteId = path[0]; | ||||||
|             const closestNoteBestNotePath = becca.getNote(closestNoteId).getBestNotePathString(); |             const closestNoteBestNotePath = becca.getNote(closestNoteId).getBestNotePath(); | ||||||
| 
 | 
 | ||||||
|             return [...closestNoteBestNotePath, ...path.slice(1)]; |             return [...closestNoteBestNotePath, ...path.slice(1)]; | ||||||
|         } |         } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam