Skip to content

Commit

Permalink
Nullableの考慮
Browse files Browse the repository at this point in the history
  • Loading branch information
tadashi-aikawa committed Jun 9, 2024
1 parent e4a912f commit 5ae13c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export default class SilhouettePlugin extends Plugin {
async activateView() {
this.app.workspace.detachLeavesOfType(REPETITION_TASK_VIEW_TYPE);

await this.app.workspace.getRightLeaf(false).setViewState({
await this.app.workspace.getRightLeaf(false)?.setViewState({
type: REPETITION_TASK_VIEW_TYPE,
active: true,
});
Expand Down

0 comments on commit 5ae13c7

Please sign in to comment.