fix error on note creation while folder is missing
This commit is contained in:
parent
ba3566caa6
commit
e48963487b
1 changed files with 1 additions and 1 deletions
|
|
@ -370,7 +370,7 @@ export default class MediaDbPlugin extends Plugin {
|
|||
// find and possibly create the folder set in settings or passed in folder
|
||||
const folder = options.folder ?? this.app.vault.getAbstractFileByPath(this.settings.folder);
|
||||
if (!folder) {
|
||||
await this.app.vault.createFolder(folder.path);
|
||||
await this.app.vault.createFolder(this.settings.folder);
|
||||
}
|
||||
|
||||
fileName = replaceIllegalFileNameCharactersInString(fileName);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue