Skip to content

Commit

Permalink
fix wellplates name and external label display
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwiniHerle committed Oct 11, 2024
1 parent 79e9ac9 commit f19482b
Showing 1 changed file with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,20 @@ export default class Well extends Component {
const labels = label.split(',');
if (labels.some(item => item === 'Molecular structure')) return svg;

const displayLabel = labels.map(labelPart => {
if (labelPart == 'Name') return sample.name;
if (labelPart == 'External Label') return sample.external_label;
return ''
}).join(', ')
const displayLabel = labels.map((labelPart) => {
if (labelPart === 'Name') return sample.name;
if (labelPart === 'External label') return sample.external_label;
return '';
}).join(', ');


return (<div>{displayLabel}</div>);
return (
<div
className="text-center lh-1"
style={{ fontSize: '0.8rem' }}
>
{displayLabel}
</div>
);
}
}

Expand Down

0 comments on commit f19482b

Please sign in to comment.