mirror of
https://github.com/zadam/trilium.git
synced 2025-11-09 14:55:50 +01:00
Fix import error (#1060)
* Fix access to attributes on undefined noteMeta * Remove .markdown extension from imported page titles
This commit is contained in:
@@ -201,7 +201,7 @@ async function importTar(taskContext, fileBuffer, importRootNote) {
|
||||
function getTextFileWithoutExtension(filePath) {
|
||||
const extension = path.extname(filePath).toLowerCase();
|
||||
|
||||
if (extension === '.md' || extension === '.html') {
|
||||
if (extension === '.md' || extension === '.markdown' || extension === '.html') {
|
||||
return filePath.substr(0, filePath.length - extension.length);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user