Skip to content

Commit

Permalink
fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmicoptima committed Apr 6, 2024
1 parent de8e539 commit 52c92e6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ export default class LoomPlugin extends Plugin {
const panes = this.app.workspace.getLeavesOfType(type);
try {
if (panes.length === 0)
this.app.workspace.getRightLeaf(false).setViewState({ type });
this.app.workspace.getRightLeaf(false)?.setViewState({ type });
else if (focus) this.app.workspace.revealLeaf(panes[0]);
} catch (e) {} // expect "TypeError: Cannot read properties of null (reading 'children')"
};
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "loom",
"name": "Loom",
"version": "1.20.4",
"version": "1.20.5",
"minAppVersion": "0.15.0",
"description": "Loom in Obsidian",
"author": "celeste",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-loom",
"version": "1.20.4",
"version": "1.20.5",
"description": "Loom in Obsidian",
"main": "main.js",
"scripts": {
Expand Down

0 comments on commit 52c92e6

Please sign in to comment.