From 89140c5551e734e316da274561f4be091c52f0ce Mon Sep 17 00:00:00 2001 From: Matt Seddon <37993418+mattseddon@users.noreply.github.com> Date: Tue, 16 May 2023 10:00:36 +1000 Subject: [PATCH] Debounce calls to git branch (#3887) --- extension/src/experiments/data/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension/src/experiments/data/index.ts b/extension/src/experiments/data/index.ts index e024b6bd18..5817d28879 100644 --- a/extension/src/experiments/data/index.ts +++ b/extension/src/experiments/data/index.ts @@ -41,6 +41,7 @@ export class ExperimentsData extends BaseData { } public async update(): Promise { + void this.updateAvailableBranchesToSelect() const flags = this.experiments.getIsBranchesView() ? [ExperimentFlag.ALL_BRANCHES] : [ @@ -95,7 +96,6 @@ export class ExperimentsData extends BaseData { if ( watchedRelPaths.some(watchedRelPath => path.includes(watchedRelPath)) ) { - void this.updateAvailableBranchesToSelect() return this.managedUpdate() } }