mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	hidden notes should not appear in the global search unless hoisted into it, #3516
This commit is contained in:
		| @@ -230,6 +230,10 @@ function init() { | ||||
|  | ||||
|     $.fn.getSelectedNoteId = function () { | ||||
|         const notePath = $(this).getSelectedNotePath(); | ||||
|         if (!notePath) { | ||||
|             return null; | ||||
|         } | ||||
|  | ||||
|         const chunks = notePath.split('/'); | ||||
|  | ||||
|         return chunks.length >= 1 ? chunks[chunks.length - 1] : null; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user