diff --git a/manifest.json b/manifest.json index bc63bb7..9958194 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "folder-notes", "name": "Folder notes", - "version": "1.6.1", + "version": "1.6.2", "minAppVersion": "0.15.0", "description": "Create notes within folders that can be accessed without collapsing the folder, similar to the functionality offered in Notion.", "author": "Lost Paul", diff --git a/src/functions/folderNoteFunctions.ts b/src/functions/folderNoteFunctions.ts index a3d8457..e923412 100644 --- a/src/functions/folderNoteFunctions.ts +++ b/src/functions/folderNoteFunctions.ts @@ -35,7 +35,7 @@ export async function createFolderNote(plugin: FolderNotesPlugin, folderPath: st if (!existingNote) { let content = ''; if (extension !== '.md') { - if (plugin.settings.templatePath && folderNoteType === plugin.settings.templatePath.split('.').pop()) { + if (plugin.settings.templatePath && folderNoteType === '.' + plugin.settings.templatePath.split('.').pop()) { const templateFile = plugin.app.vault.getAbstractFileByPath(plugin.settings.templatePath); if (templateFile instanceof TFile) { if (['md', 'canvas', 'txt'].includes(templateFile.extension)) {