Skip to content

Commit

Permalink
Fix excalidraw template bug
Browse files Browse the repository at this point in the history
  • Loading branch information
LostPaul committed Oct 7, 2023
1 parent 947ddf6 commit d41710a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/functions/folderNoteFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit d41710a

Please sign in to comment.