mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
use type assertions to make TS happy?
This commit is contained in:
parent
91095e8d4e
commit
c37a51c6d0
@ -478,7 +478,7 @@ async function importZip(taskContext: TaskContext, fileBuffer: Buffer, importRoo
|
|||||||
// only skeleton was created because of altered order of cloned notes in ZIP, we need to update
|
// only skeleton was created because of altered order of cloned notes in ZIP, we need to update
|
||||||
// https://github.com/zadam/trilium/issues/2440
|
// https://github.com/zadam/trilium/issues/2440
|
||||||
if (note.type === undefined) {
|
if (note.type === undefined) {
|
||||||
note.type = type;
|
note.type = type as NoteType;
|
||||||
note.mime = mime;
|
note.mime = mime;
|
||||||
note.title = noteTitle || "";
|
note.title = noteTitle || "";
|
||||||
note.isProtected = isProtected;
|
note.isProtected = isProtected;
|
||||||
@ -503,7 +503,7 @@ async function importZip(taskContext: TaskContext, fileBuffer: Buffer, importRoo
|
|||||||
title: noteTitle || "",
|
title: noteTitle || "",
|
||||||
content: content,
|
content: content,
|
||||||
noteId,
|
noteId,
|
||||||
type,
|
type: type as NoteType,
|
||||||
mime,
|
mime,
|
||||||
prefix: noteMeta?.prefix || '',
|
prefix: noteMeta?.prefix || '',
|
||||||
isExpanded: !!noteMeta?.isExpanded,
|
isExpanded: !!noteMeta?.isExpanded,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user