Fix load-more button state

This commit is contained in:
eikek
2022-06-03 00:20:02 +02:00
parent b50f57f7fe
commit cfc903403a
2 changed files with 14 additions and 2 deletions

View File

@@ -209,7 +209,7 @@ update texts bookmarkId lastViewedItemId env msg model =
{ model
| searchInProgress = False
, searchOffset = noff
, moreAvailable = list.groups /= []
, moreAvailable = Data.Items.nonEmpty list
}
in
makeResult env.selectedItems <|
@@ -233,7 +233,7 @@ update texts bookmarkId lastViewedItemId env msg model =
| searchInProgress = False
, moreInProgress = False
, searchOffset = noff
, moreAvailable = list.groups /= []
, moreAvailable = Data.Items.nonEmpty list
}
in
update texts bookmarkId lastViewedItemId env (ItemCardListMsg (Comp.ItemCardList.AddResults list)) m