Skip to content

Commit

Permalink
Don't allow connection-of-travel-assessment legend to overflow card
Browse files Browse the repository at this point in the history
  • Loading branch information
linda-baker committed May 29, 2024
1 parent 86d8b7a commit 4035e38
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const hasInvalidEvents = data?.some(item => item.eventCountInvalid > 0);
<Legend
wrapperStyle={{
paddingTop: "10px",
height: "50px",
height: hasValidEvents && hasInvalidEvents && (data?.length ?? 5) <= 4 ? "90px" : "50px",
}}
payload={[
...(hasValidEvents ? [{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ useEffect(() => {
}
}, [intersectionId]);

const emptyChartData: ChartData[] = [];

const CustomTooltip = ({ active, payload }: TooltipProps<ValueType, NameType>) => {
if (active && payload) {
const obj = payload[0].payload;
Expand Down

0 comments on commit 4035e38

Please sign in to comment.