Fix bug with performance criteria
This commit is contained in:
parent
0dbca05892
commit
9e5e2e10b7
|
|
@ -35,16 +35,16 @@ export const useCompetenceStore = defineStore({
|
|||
if (criteria) {
|
||||
const grouped = groupBy(criteria, "completion_status");
|
||||
return {
|
||||
FAIL: grouped?.FAIL.length || 0,
|
||||
SUCCESS: grouped?.SUCCESS.length || 0,
|
||||
UNKNOWN: grouped?.UNKNOWN.length || 0,
|
||||
UNKNOWN: grouped?.UNKNOWN?.length || 0,
|
||||
SUCCESS: grouped?.SUCCESS?.length || 0,
|
||||
FAIL: grouped?.FAIL?.length || 0,
|
||||
};
|
||||
}
|
||||
|
||||
return {
|
||||
UNKNOWN: 0,
|
||||
SUCCESS: 0,
|
||||
FAIL: 0,
|
||||
UNKNOWN: 0,
|
||||
};
|
||||
},
|
||||
criteriaByCompetence(competence: CompetencePage) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue