mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 03:46:37 +01:00
server-ts: Fix build errors
This commit is contained in:
@@ -226,7 +226,7 @@ function removeTextFileExtension(filePath: string) {
|
||||
}
|
||||
}
|
||||
|
||||
function getNoteTitle(filePath: string, replaceUnderscoresWithSpaces: boolean, noteMeta: { title: string }) {
|
||||
function getNoteTitle(filePath: string, replaceUnderscoresWithSpaces: boolean, noteMeta?: { title: string }) {
|
||||
if (noteMeta) {
|
||||
return noteMeta.title;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user