Skip to content

Commit

Permalink
fix potential Note.runAction related issues for notes without type
Browse files Browse the repository at this point in the history
  • Loading branch information
konodyuk committed Dec 2, 2023
1 parent 47ab977 commit 0d7c81d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/typing/note.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export class Note {
}

async runAction(name: string) {
this.type.actions[name].script.call({ note: this });
this.type?.actions[name].script.call({ note: this });
}

async runHook<T extends HookNames>(name: T, context: HookContextType<T>) {
Expand Down

0 comments on commit 0d7c81d

Please sign in to comment.