fix in ENEX import

This commit is contained in:
zadam
2020-09-16 20:32:20 +02:00
parent 13b9f5231c
commit d57a303251
4 changed files with 14 additions and 9 deletions

View File

@@ -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);