Skip to content

Commit

Permalink
fix: Don't show connectionPoints on draw panel until they exist (#2877)
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahpurcell authored Oct 23, 2024
1 parent 4733e1e commit 1b23ece
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions assets/src/components/detours/diversionPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,12 @@ export const DiversionPage = ({
return (
<DrawDetourPanel
directions={extendedDirections}
connectionPoints={[
connectionPoints?.start?.name ?? "N/A",
connectionPoints?.end?.name ?? "N/A",
]}
connectionPoints={
connectionPoints && [
connectionPoints?.start?.name ?? "N/A",
connectionPoints?.end?.name ?? "N/A",
]
}
missedStops={missedStops}
routeName={routeName ?? "??"}
routeDescription={routeDescription ?? "??"}
Expand Down

0 comments on commit 1b23ece

Please sign in to comment.