Skip to content

Commit

Permalink
Merge pull request #1687 from VEuPathDB/bug/mosaic-strat-var-label
Browse files Browse the repository at this point in the history
Fix titleOverride label bug
  • Loading branch information
jernestmyers authored Mar 15, 2023
2 parents a2f5942 + b02b51e commit 4744ef8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@veupathdb/eda",
"version": "4.1.8",
"version": "4.1.9",
"dependencies": {
"debounce-promise": "^3.1.2",
"fp-ts": "^2.9.3",
Expand Down
5 changes: 3 additions & 2 deletions src/lib/core/components/visualizations/InputVariables.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,9 @@ export function InputVariables(props: Props) {
>
<div className={classes.fullRow}>
<h4>
{inputs.find((input) => input.titleOverride)?.titleOverride ??
sectionInfo[inputRole ?? 'default'].title}
{inputs.find(
(input) => input.role === inputRole && input.titleOverride
)?.titleOverride ?? sectionInfo[inputRole ?? 'default'].title}
</h4>
</div>
{inputs
Expand Down

0 comments on commit 4744ef8

Please sign in to comment.