server-ts: Fix build errors

This commit is contained in:
Elian Doran
2024-02-25 15:06:43 +02:00
parent 7f0102181d
commit 8c5f680dca
4 changed files with 34 additions and 19 deletions

View File

@@ -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 {