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 = (