mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	fixes
This commit is contained in:
		| @@ -33,6 +33,10 @@ async function importToBranch(req) { | |||||||
| } | } | ||||||
|  |  | ||||||
| function toHtml(text) { | function toHtml(text) { | ||||||
|  |     if (!text) { | ||||||
|  |         return ''; | ||||||
|  |     } | ||||||
|  |  | ||||||
|     return '<p>' + text.replace(/(?:\r\n|\r|\n)/g, '</p><p>') + '</p>'; |     return '<p>' + text.replace(/(?:\r\n|\r|\n)/g, '</p><p>') + '</p>'; | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -56,7 +56,7 @@ async function load(req) { | |||||||
|     const branchIds = req.body.branchIds; |     const branchIds = req.body.branchIds; | ||||||
|  |  | ||||||
|     if (branchIds && branchIds.length > 0) { |     if (branchIds && branchIds.length > 0) { | ||||||
|         noteIds = (await sql.getColumn(`SELECT noteId FROM branches WHERE isDeleted = 0 AND branchId IN(???)`, branchIds)) |         noteIds = (await sql.getManyRows(`SELECT noteId FROM branches WHERE isDeleted = 0 AND branchId IN(???)`, branchIds)) | ||||||
|             .map(note => note.noteId); |             .map(note => note.noteId); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user