From 8454ff06e4e49e919cc7141d7b0d1ec5439285c6 Mon Sep 17 00:00:00 2001 From: KeeyanGhoreshi Date: Thu, 11 Jan 2024 16:46:34 -0500 Subject: [PATCH] rid of console --- src/views/Questionnaire/SmartApp.tsx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/views/Questionnaire/SmartApp.tsx b/src/views/Questionnaire/SmartApp.tsx index 812701b..8e781c4 100644 --- a/src/views/Questionnaire/SmartApp.tsx +++ b/src/views/Questionnaire/SmartApp.tsx @@ -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]); @@ -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) {