mirror of
https://github.com/zadam/trilium.git
synced 2025-12-04 22:44:25 +01:00
fix(note_create): type casting
This commit is contained in:
parent
c2a27eff2c
commit
bc4186d216
@ -124,8 +124,12 @@ async function createNote(
|
|||||||
return createNoteIntoInbox(resolvedOptions);
|
return createNoteIntoInbox(resolvedOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only "into" | "before" | "after" reach here
|
// Only "into" | "before" | "after". the possibility of "inbox" was resolved
|
||||||
return createNoteWithUrl(resolvedOptions.target, resolvedOptions);
|
// a line above
|
||||||
|
return createNoteWithUrl(
|
||||||
|
resolvedOptions.target as "into" | "before" | "after",
|
||||||
|
resolvedOptions
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function promptForType(
|
async function promptForType(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user