From 7ae35a7906083497bfd162000c33a972a7d162c4 Mon Sep 17 00:00:00 2001 From: Simon Malesys <simon.malesys@pasteur.fr> Date: Tue, 4 Mar 2025 14:57:16 +0100 Subject: [PATCH] Revert "Remove temporarily the count optimization" This reverts commit 396d09a396fff9722d6cc1573a4e296dd56b2547 --- src/client/store.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/client/store.ts b/src/client/store.ts index 6d2f9cf..402666a 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 => { -- GitLab