Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Remove dangling SNR from the image panel in the imaging browser when SNR is not available for the image #8155

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ changes in the following format: PR #1234***
#### Bug Fixes
- Bug fix to the imaging uploader so that when clicking on an upload row, the row is
highlighted and the proper log is being displayed in the log viewer (PR #8154)

- Remove SNR label from the image panel of the imaging browser when no SNR values can
be found for the image (PR #8155)


## LORIS 24.0 (Release Date: 2022-03-24)
### Core
Expand Down
6 changes: 5 additions & 1 deletion modules/imaging_browser/jsx/ImagePanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -549,9 +549,13 @@ class ImagePanelQCSNRValue extends Component {
* @return {JSX} - React markup for the component
*/
render() {
let label = null;
if (this.props.SNR) {
label = 'SNR';
}
return (
<ImageQCStatic
Label="SNR"
Label={label}
FormName="snr"
FileID={this.props.FileID}
defaultValue={this.props.SNR}
Expand Down