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);
|
||||
}
|
||||
|
||||
// Only "into" | "before" | "after" reach here
|
||||
return createNoteWithUrl(resolvedOptions.target, resolvedOptions);
|
||||
// Only "into" | "before" | "after". the possibility of "inbox" was resolved
|
||||
// a line above
|
||||
return createNoteWithUrl(
|
||||
resolvedOptions.target as "into" | "before" | "after",
|
||||
resolvedOptions
|
||||
);
|
||||
}
|
||||
|
||||
async function promptForType(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user