Skip to content

Commit

Permalink
Fix fech more resources condition
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVelezLl committed Feb 19, 2024
1 parent 9f6f917 commit 64d4556
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
:loadingMoreState="loadingMore"
@changeselectall="toggleTopicInWorkingResources"
@change_content_card="toggleSelected"
@moreresults="fetchMoreQuizResources"
@moreresults="fetchMoreResources"
/>

<div class="bottom-navigation">
Expand Down Expand Up @@ -333,6 +333,13 @@
}
});
function fetchMoreResources() {
if (searchQuery.value) {
return fetchMoreSearchResults();
}
return fetchMoreQuizResources();
}
return {
topic,
topicId,
Expand All @@ -342,7 +349,7 @@
loading,
hasMore,
loadingMore,
fetchMoreQuizResources: searchQuery ? fetchMoreSearchResults : fetchMoreQuizResources,
fetchMoreResources,
resetWorkingResourcePool,
contentPresentInWorkingResourcePool,
//contentList,
Expand Down

0 comments on commit 64d4556

Please sign in to comment.