From ff81afb7fb0b30a512984e12f5e75c16db3f9ffe Mon Sep 17 00:00:00 2001 From: Varun Subramanyan Date: Thu, 7 May 2026 14:02:31 -0700 Subject: [PATCH] =?UTF-8?q?fix:=20use=20switchMap=20instead=20of=20flatMap?= =?UTF-8?q?=20for=20plugin=20search=20to=20prevent=20st=E2=80=A6=20(#11089?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/pluginsSettingsTab.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tabby-plugin-manager/src/components/pluginsSettingsTab.component.ts b/tabby-plugin-manager/src/components/pluginsSettingsTab.component.ts index 10af71fb..8d504008 100644 --- a/tabby-plugin-manager/src/components/pluginsSettingsTab.component.ts +++ b/tabby-plugin-manager/src/components/pluginsSettingsTab.component.ts @@ -1,6 +1,6 @@ /* eslint-disable @typescript-eslint/explicit-module-boundary-types */ import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker' -import { BehaviorSubject, Observable, debounceTime, distinctUntilChanged, first, tap, flatMap, map } from 'rxjs' +import { BehaviorSubject, Observable, debounceTime, distinctUntilChanged, first, tap, switchMap, map } from 'rxjs' import semverGt from 'semver/functions/gt' import { Component, HostBinding, Input } from '@angular/core' @@ -48,7 +48,7 @@ export class PluginsSettingsTabComponent { .pipe( debounceTime(200), distinctUntilChanged(), - flatMap(query => { + switchMap(query => { this.availablePluginsReady = false return this.pluginManager.listAvailable(query).pipe(tap(() => { this.availablePluginsReady = true @@ -69,7 +69,7 @@ export class PluginsSettingsTabComponent { .pipe( debounceTime(200), distinctUntilChanged(), - flatMap(query => { + switchMap(query => { return this.pluginManager.listInstalled(query) }), ).subscribe(plugin => {