mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	cleanup/fixes of label/relation definition usages in the old style
This commit is contained in:
		| @@ -464,6 +464,12 @@ function saveNoteRevision(note) { | ||||
|     const msSinceDateCreated = now.getTime() - dateUtils.parseDateTime(note.utcDateCreated).getTime(); | ||||
|  | ||||
|     if (!existingNoteRevisionId && msSinceDateCreated >= noteRevisionSnapshotTimeInterval * 1000) { | ||||
|         const content = note.getContent(); | ||||
|  | ||||
|         if (!content) { | ||||
|             return; | ||||
|         } | ||||
|  | ||||
|         const noteRevision = new NoteRevision({ | ||||
|             noteId: note.noteId, | ||||
|             // title and text should be decrypted now | ||||
| @@ -478,7 +484,7 @@ function saveNoteRevision(note) { | ||||
|             dateCreated: dateUtils.localNowDateTime() | ||||
|         }).save(); | ||||
|  | ||||
|         noteRevision.setContent(note.getContent()); | ||||
|         noteRevision.setContent(content); | ||||
|     } | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user