lrf402788946 il y a 4 ans
Parent
commit
936243d7e2
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      app/service/statistics.js

+ 2 - 2
app/service/statistics.js

@@ -152,8 +152,8 @@ class IndexService extends CrudService {
     const data = statusList.map(i => {
       const { label, value } = i;
       const r = res.find(f => f._id === value);
-      const obj = { label, count: 0 };
-      if (r) obj.count = r.count;
+      const obj = { label, value: 0 };
+      if (r) obj.value = r.value;
       return obj;
     });
     return data;