mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
server-ts: Port services/import/zip
This commit is contained in:
@@ -226,8 +226,8 @@ function removeTextFileExtension(filePath: string) {
|
||||
}
|
||||
}
|
||||
|
||||
function getNoteTitle(filePath: string, replaceUnderscoresWithSpaces: boolean, noteMeta?: { title: string }) {
|
||||
if (noteMeta) {
|
||||
function getNoteTitle(filePath: string, replaceUnderscoresWithSpaces: boolean, noteMeta?: { title?: string }) {
|
||||
if (noteMeta?.title) {
|
||||
return noteMeta.title;
|
||||
} else {
|
||||
const basename = path.basename(removeTextFileExtension(filePath));
|
||||
|
||||
Reference in New Issue
Block a user