feat: Add VIN decoding with NHTSA vPIC API (#9) #24
@@ -453,8 +453,6 @@ export const VehicleForm: React.FC<VehicleFormProps> = ({
|
|||||||
const makeValue = !watchedMake && decoded.make.value ? decoded.make.value : watchedMake;
|
const makeValue = !watchedMake && decoded.make.value ? decoded.make.value : watchedMake;
|
||||||
const modelValue = !watchedModel && decoded.model.value ? decoded.model.value : watchedModel;
|
const modelValue = !watchedModel && decoded.model.value ? decoded.model.value : watchedModel;
|
||||||
const trimValue = !watchedTrim && decoded.trimLevel.value ? decoded.trimLevel.value : watchedTrim;
|
const trimValue = !watchedTrim && decoded.trimLevel.value ? decoded.trimLevel.value : watchedTrim;
|
||||||
const engineValue = !watchedEngine && decoded.engine.value ? decoded.engine.value : watchedEngine;
|
|
||||||
const transmissionValue = !watchedTransmission && decoded.transmission.value ? decoded.transmission.value : watchedTransmission;
|
|
||||||
|
|
||||||
// FIRST: Load all dropdown options hierarchically (like edit mode initialization)
|
// FIRST: Load all dropdown options hierarchically (like edit mode initialization)
|
||||||
// Options must exist BEFORE setting form values for selects to display correctly
|
// Options must exist BEFORE setting form values for selects to display correctly
|
||||||
|
|||||||
Reference in New Issue
Block a user