mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01:00 
			
		
		
		
	fix(client/ts): build error
This commit is contained in:
		
							parent
							
								
									cde74faca9
								
							
						
					
					
						commit
						be93380d03
					
				@ -40,7 +40,7 @@ interface DuplicateResponse {
 | 
				
			|||||||
    note: FNote;
 | 
					    note: FNote;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
async function createNote(parentNotePath: string, options: CreateNoteOpts = {}) {
 | 
					async function createNote(parentNotePath: string | undefined, options: CreateNoteOpts = {}) {
 | 
				
			||||||
    options = Object.assign({
 | 
					    options = Object.assign({
 | 
				
			||||||
        activate: true,
 | 
					        activate: true,
 | 
				
			||||||
        focus: 'title',
 | 
					        focus: 'title',
 | 
				
			||||||
 | 
				
			|||||||
@ -149,7 +149,7 @@ function getParentProtectedStatus(node: Node) {
 | 
				
			|||||||
    return hoistedNoteService.isHoistedNode(node) ? false : node.getParent().data.isProtected;
 | 
					    return hoistedNoteService.isHoistedNode(node) ? false : node.getParent().data.isProtected;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function getNoteIdFromUrl(urlOrNotePath: string) {
 | 
					function getNoteIdFromUrl(urlOrNotePath: string | undefined) {
 | 
				
			||||||
    if (!urlOrNotePath) {
 | 
					    if (!urlOrNotePath) {
 | 
				
			||||||
        return null;
 | 
					        return null;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user