fix a nasty bug

This commit is contained in:
krawieck 2021-01-08 17:51:40 +01:00
parent 4e40e16e66
commit 2c8d601d27
1 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ class _SearchResultsList extends HookWidget {
final acs = useAccountsStore();
return SortableInfiniteList(
fetcher: (data, page, sort) async {
fetcher: (page, batchSize, sort) async {
final s = await LemmyApi(instance).v1.search(
q: query,
sort: sort,
@ -83,7 +83,7 @@ class _SearchResultsList extends HookWidget {
auth: acs.defaultTokenFor(instance)?.raw,
page: page,
);
print(s.users.length.toString());
switch (s.type) {
case SearchType.comments:
return s.comments;