Skip to content
Snippets Groups Projects
Commit 7ae35a79 authored by Simon Malesys's avatar Simon Malesys
Browse files

Revert "Remove temporarily the count optimization"

This reverts commit 396d09a3
parent 396d09a3
No related branches found
No related tags found
No related merge requests found
Pipeline #151029 passed
......@@ -127,10 +127,10 @@ export const useStore = defineStore('store', {
countAntibodies(countRequest: APICountParams): void {
// Avoid to send an empty request to get an information
// we already have in the stats.
// if (Object.keys(countRequest).length === 0 && this.statistics?.antibodies) {
// this.antibodiesCount = this.statistics.antibodies
// return
// }
if (Object.keys(countRequest).length === 0 && this.statistics?.antibodies) {
this.antibodiesCount = this.statistics.antibodies
return
}
this.isFetchingCount = true
api.countAntibodies(countRequest).then(response => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment