mirror of
https://github.com/zadam/trilium.git
synced 2025-11-17 18:50:41 +01:00
fix in ENEX import
This commit is contained in:
@@ -250,14 +250,14 @@ function importEnex(taskContext, file, parentNote) {
|
||||
}
|
||||
|
||||
const createFileNote = () => {
|
||||
const resourceNote = (noteService.createNewNote({
|
||||
const resourceNote = noteService.createNewNote({
|
||||
parentNoteId: noteEntity.noteId,
|
||||
title: resource.title,
|
||||
content: resource.content,
|
||||
type: 'file',
|
||||
mime: resource.mime,
|
||||
isProtected: parentNote.isProtected && protectedSessionService.isProtectedSessionAvailable(),
|
||||
})).note;
|
||||
}).note;
|
||||
|
||||
for (const attr of resource.attributes) {
|
||||
noteEntity.addAttribute(attr.type, attr.name, attr.value);
|
||||
|
||||
Reference in New Issue
Block a user