Skip to content

Commit

Permalink
Debounce calls to git branch (#3887)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattseddon authored May 16, 2023
1 parent 286118f commit 89140c5
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 89140c5

Please sign in to comment.