Skip to content

Commit

Permalink
Update main.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Vinzent <[email protected]>
  • Loading branch information
tamiroh and Vinzent03 authored Sep 11, 2023
1 parent e506eaa commit aac6827
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 @@ -1251,7 +1251,7 @@ export default class ObsidianGit extends Plugin {
this.app.workspace.iterateAllLeaves((leaf) => {
if (
leaf.view instanceof MarkdownView &&
(leaf.view.file as any).path == file.path
leaf.view.file?.path == file.path
) {
leaf.detach();
}
Expand Down

0 comments on commit aac6827

Please sign in to comment.