From eff11fbeee08b76d50140780f214ff86b913eaae Mon Sep 17 00:00:00 2001 From: sb-cecilialiu Date: Fri, 15 Nov 2024 08:25:02 -0600 Subject: [PATCH] MAT-7915 undefined strataCode --- src/api/CalculationService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }