Skip to content

Commit

Permalink
Merge pull request #6 from alexisthual/bugfix/missing_description
Browse files Browse the repository at this point in the history
Handle missing descriptions in frontend
  • Loading branch information
alexisthual authored Feb 12, 2024
2 parents 3b9c147 + 927fcff commit b224e60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/views/surface/surfacePane/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -493,13 +493,13 @@ const SurfacePane = ({
`(${entry.conditions[condition] >= 0 ? "+" : ""}${
entry.conditions[condition]
}) ${condition}`,
datasetDescriptions[task].maps[condition].description,
datasetDescriptions[task]?.maps[condition]?.description,
]);
}
} else {
newDescriptions.push([
contrast,
datasetDescriptions[task]?.maps[contrast].description,
datasetDescriptions[task]?.maps[contrast]?.description,
]);
}
}
Expand Down

0 comments on commit b224e60

Please sign in to comment.