Skip to content

Commit

Permalink
rid of console
Browse files Browse the repository at this point in the history
  • Loading branch information
KeeyanGhoreshi committed Jan 11, 2024
1 parent 0db199e commit 8454ff0
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/views/Questionnaire/SmartApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,6 @@ export function SmartApp(props: SmartAppProps) {
// TODO: this could be redone like in original DTR to have a big fancy display for errors but I don't think it's necessary or useful.
// The previous version was persistent at the top of the page. An alert gets the job done just fine.
errors.forEach(e => {
console.log('<<<<<');
console.log(e);
alert(e.details);
});
}, [errors]);
Expand Down Expand Up @@ -528,17 +526,16 @@ export function SmartApp(props: SmartAppProps) {
elm.library.valueSets.def.forEach(valueSetDef => {
// find FHIR value set artifact
const valueSetDefId = valueSetDef.id;
const valueSet = artifacts.valueSets.find((valueSet) => {
if(valueSet.id && valueSetDefId.includes(valueSet.id)) {
const valueSet = artifacts.valueSets.find(valueSet => {
if (valueSet.id && valueSetDefId.includes(valueSet.id)) {
return true;
} else {
if(valueSet.url && valueSetDefId.includes(valueSet.url)) {
if (valueSet.url && valueSetDefId.includes(valueSet.url)) {
return true;
}
}
return false;
}
);
});
if (valueSet != null) {
// make sure it has an expansion
if (valueSet.expansion != null) {
Expand Down

0 comments on commit 8454ff0

Please sign in to comment.