Skip to content

Commit 0e568e9

Browse files
committed
Removes extra refresh call
1 parent 8a9f0be commit 0e568e9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/views/nodes/commitNode.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ export class CommitNode extends ViewRefNode<ViewsWithCommits | FileHistoryView,
9898
new PullRequestNode(this.view as ViewsWithCommits, this, pr, commit),
9999
);
100100
}
101+
101102
// Refresh this node to show a spinner while the pull request is loading
102103
this.view.triggerNodeChange(this);
103104
});
@@ -107,8 +108,6 @@ export class CommitNode extends ViewRefNode<ViewsWithCommits | FileHistoryView,
107108
() => this.view.triggerNodeChange(this),
108109
() => {},
109110
);
110-
111-
queueMicrotask(() => this.view.triggerNodeChange(this));
112111
});
113112
}
114113
}

0 commit comments

Comments
 (0)