diff --git a/src/utils/cohortCreation.ts b/src/utils/cohortCreation.ts index 21284fdf9..1f7134352 100644 --- a/src/utils/cohortCreation.ts +++ b/src/utils/cohortCreation.ts @@ -2097,7 +2097,7 @@ export const getDataFromFetch = async ( ) { for (const code of currentcriterion.code) { const prevData = prevDataCache[dataKey]?.find( - (data: any) => data.id === code?.id && data.system && code?.system + (data: any) => data.id === code?.id && data.system === code?.system ) const codeData = prevData ? [prevData] : await _criterion.fetch[dataKey]?.(code?.id, code?.system) const existingCodes = criteriaDataCache.data[dataKey] || []