mirror of
https://github.com/zadam/trilium.git
synced 2025-11-04 20:36:13 +01:00
server: Fix import of notes with type=file
This commit is contained in:
@@ -500,10 +500,6 @@ async function importZip(taskContext: TaskContext, fileBuffer: Buffer, importRoo
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (typeof content !== "string") {
|
||||
throw new Error("Incorrect content type.");
|
||||
}
|
||||
|
||||
({note} = noteService.createNewNote({
|
||||
parentNoteId: parentNoteId,
|
||||
title: noteTitle || "",
|
||||
|
||||
Reference in New Issue
Block a user