Skip to content

Commit

Permalink
Never pass "searchTerm" for "filter" source content type request (#371)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
schroda authored Jun 17, 2023
1 parent 0495a93 commit 05fa6d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/screens/SourceMangas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const useSourceManga = (
case SourceContentType.FILTER:
result = requestManager.useSourceQuickSearch(
sourceId,
searchTerm ?? '',
'',
filters.map((filter) => {
const { position, state, group } = filter;

Expand Down

0 comments on commit 05fa6d8

Please sign in to comment.