1.14.1-beta.2
This commit is contained in:
@@ -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') + '/'
|
||||
|
||||
Reference in New Issue
Block a user