1.14.1-beta.2

This commit is contained in:
Simon Cambier
2023-05-13 22:07:17 +02:00
parent 0d6907abbd
commit a2853fa2fd
3 changed files with 3 additions and 3 deletions

View File

@@ -52,7 +52,7 @@ export async function createNote(name: string, newLeaf = false): Promise<void> {
let pathPrefix: string
switch (app.vault.getConfig('newFileLocation')) {
case 'current':
pathPrefix = (app.workspace.getActiveFile()?.parent.path ?? '') + '/'
pathPrefix = (app.workspace.getActiveFile()?.parent?.path ?? '') + '/'
break
case 'folder':
pathPrefix = app.vault.getConfig('newFileFolderPath') + '/'