This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit 81d66702 authored by Daniel Rainer's avatar Daniel Rainer
Browse files

Display correct hit count

Previously, hitCount was increased every time
a new batch of results was loaded.
parent 850223a5
Branches
Tags
2 merge requests!23Next Release Candidate,!12Display correct hit count
......@@ -54,7 +54,7 @@ export class SearchComponent implements OnInit {
}
private parseSearchResultsDTO(searchResultsDTO: SearchResultsDTO): Exercise[] {
this.hitCount += searchResultsDTO.hitCount;
this.hitCount = searchResultsDTO.hitCount;
return searchResultsDTO.searchResult.map(this.searchResultToExercise);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment