diff --git a/src/api/CalculationService.ts b/src/api/CalculationService.ts index 6a0e98a3..bcdd20c4 100644 --- a/src/api/CalculationService.ts +++ b/src/api/CalculationService.ts @@ -431,8 +431,8 @@ export class CalculationService { (strata) => // TODO: workaround because fqm execution doesn't provide IDs for all cases (strata.strataCode && - strata.strataCode === strataResult.strataCode) || - (strata.strataId && strata.strataId === strataResult.strataId) + strata.strataCode === strataResult?.strataCode) || + (strata.strataId && strata.strataId === strataResult?.strataId) ); return population?.result && stratification?.result; }