mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	frontend validation of attribute name + other changes and fixes
This commit is contained in:
		| @@ -4,6 +4,7 @@ const noteCache = require('./note_cache'); | ||||
| const hoistedNoteService = require('../hoisted_note'); | ||||
| const protectedSessionService = require('../protected_session'); | ||||
| const stringSimilarity = require('string-similarity'); | ||||
| const log = require('../log'); | ||||
|  | ||||
| function isNotePathArchived(notePath) { | ||||
|     const noteId = notePath[notePath.length - 1]; | ||||
| @@ -62,6 +63,11 @@ function getNoteTitle(childNoteId, parentNoteId) { | ||||
|     const childNote = noteCache.notes[childNoteId]; | ||||
|     const parentNote = noteCache.notes[parentNoteId]; | ||||
|  | ||||
|     if (!childNote) { | ||||
|         log.info(`Cannot find note in cache for noteId ${childNoteId}`); | ||||
|         return "[error fetching title]"; | ||||
|     } | ||||
|  | ||||
|     let title; | ||||
|  | ||||
|     if (childNote.isProtected) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user