Skip to content

Commit 7887c7f

Browse files
committed
fix: don't refresh views if git client is not ready
1 parent 42bf536 commit 7887c7f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ export default class ObsidianGit extends Plugin {
9090
}
9191

9292
async refresh() {
93+
if (!this.gitReady) return;
94+
9395
const gitView = this.app.workspace.getLeavesOfType(
9496
SOURCE_CONTROL_VIEW_CONFIG.type
9597
);

0 commit comments

Comments
 (0)