mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 07:01:31 +08:00 
			
		
		
		
	chore(ts): allow link.createLink notePath type to accept undefined
it can also accept undefined -> it is even handled in that first if block. change required for upcoming port of attachment_*.js files
This commit is contained in:
		
							parent
							
								
									1dfa4a8bc2
								
							
						
					
					
						commit
						31170744d1
					
				@ -70,7 +70,7 @@ interface CreateLinkOptions {
 | 
			
		||||
    viewScope?: ViewScope;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
async function createLink(notePath: string, options: CreateLinkOptions = {}) {
 | 
			
		||||
async function createLink(notePath: string | undefined, options: CreateLinkOptions = {}) {
 | 
			
		||||
    if (!notePath || !notePath.trim()) {
 | 
			
		||||
        logError("Missing note path");
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user