mirror of
https://github.com/heroblackink/ultimate-todoist-sync-for-obsidian.git
synced 2026-07-22 07:40:27 +00:00
Before setting the default project, check if the current file exists.
This commit is contained in:
parent
e765b8cbae
commit
918136e91b
1 changed files with 4 additions and 1 deletions
5
main.ts
5
main.ts
|
|
@ -266,8 +266,11 @@ export default class UltimateTodoistSyncForObsidian extends Plugin {
|
|||
id: 'set-default-project-for-todoist-task-in-the-current-file',
|
||||
name: 'Set default project for todoist task in the current file',
|
||||
editorCallback: (editor: Editor, view: MarkdownView) => {
|
||||
if(!view){
|
||||
return
|
||||
}
|
||||
const filepath = view.file.path
|
||||
new SetDefalutProjectInTheFilepathModal(this.app,this,this.cacheOperation,filepath)
|
||||
new SetDefalutProjectInTheFilepathModal(this.app,this,filepath)
|
||||
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue