Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
MAT-7915 resolve execution result difference in list page and test ca…
Browse files Browse the repository at this point in the history
…se edit page
  • Loading branch information
sb-cecilialiu committed Nov 18, 2024
1 parent eff11fb commit b35344d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/api/CalculationService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,9 +312,16 @@ export class CalculationService {
}
// verify stratification & stratified populations passing if they exist
if (groupPopulation.stratificationValues) {
return groupPopulation.stratificationValues.every((strata) => {
let validStratPopValues = [];
groupPopulation.stratificationValues.forEach((stratValues) => {
const filtered = stratValues.populationValues?.filter(
(populationValue) => populationValue.expected !== null
);
validStratPopValues.push(filtered);
});
return validStratPopValues.every((strata) => {
// verify stratified populations passing
return strata.populationValues.every((population) =>
return strata.every((population) =>
this.isValuePass(
population.actual,
population.expected,
Expand Down

0 comments on commit b35344d

Please sign in to comment.