Skip to content

Commit

Permalink
Debounce calls to git branch
Browse files Browse the repository at this point in the history
  • Loading branch information
mattseddon committed May 15, 2023
1 parent ea4690f commit 7a87ce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extension/src/experiments/data/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export class ExperimentsData extends BaseData<ExpShowOutput> {
}

public async update(): Promise<void> {
void this.updateAvailableBranchesToSelect()
const flags = this.experiments.getIsBranchesView()
? [ExperimentFlag.ALL_BRANCHES]
: [
Expand Down Expand Up @@ -95,7 +96,6 @@ export class ExperimentsData extends BaseData<ExpShowOutput> {
if (
watchedRelPaths.some(watchedRelPath => path.includes(watchedRelPath))
) {
void this.updateAvailableBranchesToSelect()
return this.managedUpdate()
}
}
Expand Down

0 comments on commit 7a87ce2

Please sign in to comment.