From 05fa6d8fa952443a013f45c264e33d378efa165d Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Sat, 17 Jun 2023 15:45:43 +0200 Subject: [PATCH] Never pass "searchTerm" for "filter" source content type request (#371) There was an issue when switching from the "search" back to the "filter" source content type. The "filter" request returned the data from the search request and thus, showed invalid data until the correct data was loaded instead of showing the loading placeholder --- src/screens/SourceMangas.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screens/SourceMangas.tsx b/src/screens/SourceMangas.tsx index 80eed17b..929c8f01 100644 --- a/src/screens/SourceMangas.tsx +++ b/src/screens/SourceMangas.tsx @@ -121,7 +121,7 @@ const useSourceManga = ( case SourceContentType.FILTER: result = requestManager.useSourceQuickSearch( sourceId, - searchTerm ?? '', + '', filters.map((filter) => { const { position, state, group } = filter;