From 27f81838a69c968d226a2adce448b7847df70ff3 Mon Sep 17 00:00:00 2001 From: "philip.cline" Date: Mon, 11 Apr 2022 12:59:16 -0400 Subject: [PATCH] fix(PatternStopCard): Fix 0 value continuous pickup/dropoff being displayed as '1' --- lib/editor/components/pattern/PatternStopCard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/editor/components/pattern/PatternStopCard.js b/lib/editor/components/pattern/PatternStopCard.js index 0ba0210ad..4b632a7c7 100644 --- a/lib/editor/components/pattern/PatternStopCard.js +++ b/lib/editor/components/pattern/PatternStopCard.js @@ -424,7 +424,7 @@ class PatternStopContents extends Component { selectType='continuousPickup' shouldHaveDisabledOption title='Indicates whether a rider can board the transit vehicle anywhere along the vehicle’s travel path.' - value={patternStop.continuousPickup || 1} + value={(patternStop.continuousPickup || patternStop.continuousPickup === 0) ? patternStop.continuousPickup : 1} /> @@ -435,7 +435,7 @@ class PatternStopContents extends Component { selectType='continuousDropOff' shouldHaveDisabledOption title='Indicates whether a rider can alight from the transit vehicle at any point along the vehicle’s travel path.' - value={patternStop.continuousDropOff || 1} + value={(patternStop.continuousDropOff || patternStop.continuousDropOff === 0) ? patternStop.continuousDropOff : 1} />