mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02: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);
|
||||
if (!mime) {
|
||||
if (mime == null) {
|
||||
throw new Error("Unable to resolve mime type.");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user