Skip to content

Commit

Permalink
[behavioural_qc] fixes visitLevel feedback not showing up. (#8900)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
racostas authored Jan 11, 2024
1 parent 03d2092 commit 7d8f81d
Showing 1 changed file with 24 additions and 15 deletions.
39 changes: 24 additions & 15 deletions modules/behavioural_qc/jsx/tabs_content/behaviouralFeedback.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
<td>
<a href={this.props.baseURL +
'/instruments/' +
rowData['Test Name'] +
'/?candID=' +
rowData['DCCID'] +
'&sessionID=' +
rowData['sessionID'] +
'&commentID=' +
rowData['commentID']
}>
{'Instrument : ' + rowData['Instrument']}
</a>
<a href={bvlLink}>{bvlLevel}</a>
</td>
) : reactElement = (
<td>{''}</td>
);
break;
default:
Expand Down

0 comments on commit 7d8f81d

Please sign in to comment.