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

Fix an async bug with the total

parent 4f8b633f
No related branches found
No related tags found
No related merge requests found
Pipeline #149792 failed
......@@ -102,8 +102,8 @@ 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.antibodiesCount = this.statistics?.antibodies || 0
if (Object.keys(countRequest).length === 0 && this.statistics?.antibodies) {
this.antibodiesCount = this.statistics.antibodies
return
}
......
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