Skip to content

Commit

Permalink
correction
Browse files Browse the repository at this point in the history
  • Loading branch information
aetchego committed Jan 2, 2025
1 parent d2f8249 commit 9484f5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/cohortCreation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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] || []
Expand Down

0 comments on commit 9484f5a

Please sign in to comment.