Skip to content

Commit

Permalink
Correcting logic to separate direct/indirect mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Dec 21, 2020
1 parent aac0ad5 commit 62f92f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ export const formatDateTime = date => {
}

export const getIndirectMappings = (mappings, concept) => {
return filter(mappings, {from_concept_code: concept});
return filter(mappings, {to_concept_code: concept});
}

export const getDirectMappings = (mappings, concept) => {
return filter(mappings, {to_concept_code: concept});
return filter(mappings, {from_concept_code: concept});
}

export const getDirectExternalMappings = (mappings, concept) => {
Expand Down

0 comments on commit 62f92f1

Please sign in to comment.