Skip to content

Commit

Permalink
fix: fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
srg-kostyrko committed Feb 25, 2024
1 parent aad6d2b commit 994e3e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/journal-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,9 @@ export class JournalManager extends Component {
});
}
if (this.config.calendarView.leaf === "left") {
this.app.workspace.getLeftLeaf(false).setViewState({ type: CALENDAR_VIEW_TYPE });
this.app.workspace.getLeftLeaf(false)?.setViewState({ type: CALENDAR_VIEW_TYPE });
} else {
this.app.workspace.getRightLeaf(false).setViewState({ type: CALENDAR_VIEW_TYPE });
this.app.workspace.getRightLeaf(false)?.setViewState({ type: CALENDAR_VIEW_TYPE });
}
}

Expand Down

0 comments on commit 994e3e8

Please sign in to comment.