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
This commit is contained in:
schroda
2023-06-17 15:45:43 +02:00
committed by GitHub
parent 0495a932de
commit 05fa6d8fa9

View File

@@ -121,7 +121,7 @@ const useSourceManga = (
case SourceContentType.FILTER:
result = requestManager.useSourceQuickSearch(
sourceId,
searchTerm ?? '',
'',
filters.map((filter) => {
const { position, state, group } = filter;