mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01:00 
			
		
		
		
	server: Fix import when no meta (closes #281)
This commit is contained in:
		
							parent
							
								
									89314fac03
								
							
						
					
					
						commit
						bc5a1de9b7
					
				@ -457,7 +457,7 @@ async function importZip(taskContext: TaskContext, fileBuffer: Buffer, importRoo
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        let { mime } = noteMeta ? noteMeta : detectFileTypeAndMime(taskContext, filePath);
 | 
					        let { mime } = noteMeta ? noteMeta : detectFileTypeAndMime(taskContext, filePath);
 | 
				
			||||||
        if (!mime) {
 | 
					        if (mime == null) {
 | 
				
			||||||
            throw new Error("Unable to resolve mime type.");
 | 
					            throw new Error("Unable to resolve mime type.");
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user