From 7d8f81d7c8e6e76e246c64e3afe2732cf50fd05f Mon Sep 17 00:00:00 2001 From: racostas <37309344+racostas@users.noreply.github.com> Date: Thu, 11 Jan 2024 09:15:38 -0500 Subject: [PATCH] [behavioural_qc] fixes visitLevel feedback not showing up. (#8900) Fix visit level feedback not showing up in behavioural_qc module. The visit Level feedback is now included as part of the formatColumn() function in the BehaviouralFeedback class. --- .../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: