Skip to content

Commit

Permalink
fix: If editedDirections doesn't exist (because currently already act…
Browse files Browse the repository at this point in the history
…ive / past), fall back to extendDirections
  • Loading branch information
hannahpurcell committed Oct 28, 2024
1 parent 434b872 commit 989c17c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/src/components/detours/diversionPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ export const DiversionPage = ({
directions={
editedDirections
? parseIntoDirectionsList(editedDirections)
: undefined
: extendedDirections
}
connectionPoints={[
connectionPoints?.start?.name ?? "N/A",
Expand Down Expand Up @@ -389,7 +389,7 @@ export const DiversionPage = ({
directions={
editedDirections
? parseIntoDirectionsList(editedDirections)
: undefined
: extendedDirections
}
connectionPoints={[
connectionPoints?.start?.name ?? "N/A",
Expand Down

0 comments on commit 989c17c

Please sign in to comment.