Skip to content

Commit

Permalink
Fix mistake in sample selection column truncation code (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
Grifs authored Mar 14, 2022
1 parent 0839564 commit 9212776
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## Version 5.0.2

- Fix mistake in sample selection column truncation code

## Version 5.0.0-alpha4

## Functionality
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "LuciusWeb",
"version": "5.0.1",
"version": "5.0.2",
"description": "Web interface for ComPass aka Lucius",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/js/components/SampleSelection.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ function SampleSelection(sources) {
const maxLength = 7
if (dose.length <= maxLength)
return dose
else if (isNaN(entry.dose) || entry.dose_unit >= 3)
else if (isNaN(entry.dose) || entry.dose_unit?.length >= 3)
return dose.substring(0, maxLength-1) + "..."
// adding '...' is quite small on screen (in non-monospaced fonts), so we're ignoring that
else
Expand Down

0 comments on commit 9212776

Please sign in to comment.