mirror of
https://github.com/zadam/trilium.git
synced 2025-10-26 07:46:30 +01:00
chore(ts): allow link.createLink notePath type to accept undefined
it can also accept undefined -> it is even handled in that first if block. change required for upcoming port of attachment_*.js files
This commit is contained in:
@@ -70,7 +70,7 @@ interface CreateLinkOptions {
|
||||
viewScope?: ViewScope;
|
||||
}
|
||||
|
||||
async function createLink(notePath: string, options: CreateLinkOptions = {}) {
|
||||
async function createLink(notePath: string | undefined, options: CreateLinkOptions = {}) {
|
||||
if (!notePath || !notePath.trim()) {
|
||||
logError("Missing note path");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user