-
Notifications
You must be signed in to change notification settings - Fork 8
feat(statistiques): ajoute le graph des stocks de concessions granulats marins #645
feat(statistiques): ajoute le graph des stocks de concessions granulats marins #645
Conversation
Codecov Report
@@ Coverage Diff @@
## master #645 +/- ##
==========================================
+ Coverage 98.94% 98.97% +0.03%
==========================================
Files 73 74 +1
Lines 1802 1861 +59
Branches 370 382 +12
==========================================
+ Hits 1783 1842 +59
Misses 19 19
Continue to review full report at Codecov.
|
) | ||
.reduce( | ||
(acc: { quantite: number; surface: number }, concession) => { | ||
if (!concession) return acc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On ne peut pas le mettre dans le filter
juste au dessus ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
j'ai pas compris tes 2 commentaires Vincent
if (!concession) return acc | ||
|
||
acc.quantite++ | ||
acc.surface += concession.surfaceEtape?.surface |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mettre aussi la vérification sur surfaceEtape?.surface
dans le filter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
et cette condition ? On peut la mettre dans le filter aussi stp ? @NeoBahamut
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On peut pas car il faut tout de même incrémenter la quantité 😅
Je merge !
No description provided.