diff --git a/src/client/store.ts b/src/client/store.ts index 6d2f9cfad1735ed0e618df2c2928695afb4f2da3..402666a3012f542cfcdcb98cb0fda0976716f83e 100644 --- a/src/client/store.ts +++ b/src/client/store.ts @@ -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 => {