Skip to content

Commit 1242f35

Browse files
committed
fix: migrate to new api
1 parent 5f8d61b commit 1242f35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export default class TasksCalendarWrapper extends Plugin {
8484

8585
this.app.workspace.detachLeavesOfType(type);
8686
try {
87-
await this.app.workspace.getRightLeaf(false).setViewState({
87+
await this.app.workspace.getRightLeaf(false)?.setViewState({
8888
type: type,
8989
active: true,
9090
});

0 commit comments

Comments
 (0)