File tree Expand file tree Collapse file tree 2 files changed +10
-14
lines changed
manager/components/deployment Expand file tree Collapse file tree 2 files changed +10
-14
lines changed Original file line number Diff line number Diff line change @@ -163,8 +163,6 @@ export default class DeploymentConfigurationsPanel extends Component<{
163
163
render ( ) {
164
164
const { deployment, updateDeployment } = this . props
165
165
const { customFileEditIdx, otp : options } = this . state
166
- const isOtp = deployment . tripPlannerVersion . startsWith ( 'OTP_' )
167
-
168
166
return (
169
167
< Panel header = { < h3 > < Icon type = 'cog' /> OTP Configuration</ h3 > } >
170
168
< ListGroup fill >
@@ -182,17 +180,15 @@ export default class DeploymentConfigurationsPanel extends Component<{
182
180
onChange = { this . _onUpdateTripPlannerVersion }
183
181
options = { TRIP_PLANNER_VERSIONS }
184
182
/>
185
- { isOtp && (
186
- < div >
187
- OTP jar file
188
- < Select
189
- clearable = { false }
190
- value = { deployment . otpVersion }
191
- onChange = { this . _onUpdateVersion }
192
- options = { options ? options . map ( v => ( { value : v , label : v } ) ) : [ ] }
193
- />
194
- </ div >
195
- ) }
183
+ < div >
184
+ OTP jar file
185
+ < Select
186
+ clearable = { false }
187
+ value = { deployment . otpVersion }
188
+ onChange = { this . _onUpdateVersion }
189
+ options = { options ? options . map ( v => ( { value : v , label : v } ) ) : [ ] }
190
+ />
191
+ </ div >
196
192
</ ListGroupItem >
197
193
< ListGroupItem >
198
194
Deploying to the{ ' ' }
Original file line number Diff line number Diff line change @@ -247,7 +247,7 @@ export type Deployment = {
247
247
projectId : string ,
248
248
routerId : ?string ,
249
249
skipOsmExtract : boolean ,
250
- tripPlannerVersion : 'OTP_1' | 'OTP_2' ,
250
+ tripPlannerVersion ? : 'OTP_1' | 'OTP_2' ,
251
251
user : ?any // TODO add more specific type
252
252
}
253
253
You can’t perform that action at this time.
0 commit comments