From 94a74d16cfa6d0dd0c48a94b9668c724f780ea42 Mon Sep 17 00:00:00 2001 From: Rolando Date: Wed, 27 Sep 2023 16:10:07 -0400 Subject: [PATCH] [behavioural_qc] fixes visitLevel feedback not showing up. --- .../jsx/tabs_content/behaviouralFeedback.js | 39 ++++++++++++------- 1 file changed, 24 insertions(+), 15 deletions(-) diff --git a/modules/behavioural_qc/jsx/tabs_content/behaviouralFeedback.js b/modules/behavioural_qc/jsx/tabs_content/behaviouralFeedback.js index ba353331bae..c72ea30c980 100644 --- a/modules/behavioural_qc/jsx/tabs_content/behaviouralFeedback.js +++ b/modules/behavioural_qc/jsx/tabs_content/behaviouralFeedback.js @@ -109,23 +109,32 @@ class BehaviouralFeedback extends Component { ); break; case 'Feedback Level': - rowData['Instrument'] ? reactElement = ( + let bvlLink = ''; + let bvlLevel = ''; + if (rowData['Instrument']) { + bvlLink = this.props.baseURL + + '/instruments/' + + rowData['Test Name'] + + '/?candID=' + + rowData['DCCID'] + + '&sessionID=' + + rowData['sessionID'] + + '&commentID=' + + rowData['commentID']; + bvlLevel ='Instrument : ' + rowData['Instrument']; + } else if (rowData['Visit']) { + bvlLink = this.props.baseURL + + '/instrument_list/' + + '?candID=' + + rowData['DCCID'] + + '&sessionID=' + + rowData['sessionID']; + bvlLevel ='Visit : ' + rowData['Visit']; + } + reactElement = ( - - {'Instrument : ' + rowData['Instrument']} - + {bvlLevel} - ) : reactElement = ( - {''} ); break; default: