File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -89,14 +89,15 @@ export default {
8989 limoexpress ,
9090 "vehicleClassId" ,
9191 ] ,
92+ withLabel : true ,
9293 optional : true ,
9394 } ,
9495 vehicleId : {
9596 propDefinition : [
9697 limoexpress ,
9798 "vehicleId" ,
9899 ( { vehicleClassId } ) => ( {
99- vehicleClassId,
100+ vehicleClassId : vehicleClassId . label ,
100101 } ) ,
101102 ] ,
102103 optional : true ,
@@ -258,7 +259,7 @@ export default {
258259 pickup_time : this . pickupTime ,
259260 expected_drop_off_time : this . expectedDropOffTime ,
260261 expected_comeback_time : this . expectedComebackTime ,
261- vehicle_class_id : this . vehicleClassId ,
262+ vehicle_class_id : this . vehicleClassId . value ,
262263 vehicle_id : this . vehicleId ,
263264 price : this . price && parseFloat ( this . price ) ,
264265 price_type : this . priceType ,
Original file line number Diff line number Diff line change @@ -42,13 +42,18 @@ export default {
4242 page,
4343 } ,
4444 } ) ;
45- return data . map ( ( { name } ) => name ) ;
45+ return data . map ( ( {
46+ id : value , name : label ,
47+ } ) => ( {
48+ label,
49+ value,
50+ } ) ) ;
4651 } ,
4752 } ,
4853 vehicleId : {
4954 type : "string" ,
5055 label : "Vehicle ID" ,
51- description : "ID of the vehicle to be used for the booking." ,
56+ description : "ID of the vehicle to be used for the booking. **Vehicle class ID is required**. " ,
5257 async options ( {
5358 page, vehicleClassId,
5459 } ) {
You can’t perform that action at this time.
0 commit comments