File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,8 @@ const SearchFormComponent: React.FunctionComponent<Props> = ({
67
67
const { t } = useTranslation ( )
68
68
const onSubmit = ( values : any ) => {
69
69
const query = toQueryBasic ( values )
70
+
71
+ console . log ( 'query' , query )
70
72
closeModal ( )
71
73
if ( query ) {
72
74
router . push ( {
Original file line number Diff line number Diff line change @@ -33,7 +33,8 @@ const normalizeSearchQuery = (query: any) => {
33
33
...( query . pricemax
34
34
? { 'price[$lte]' : toNumber ( get ( query , 'pricemax' , 0 ) ) + 1 }
35
35
: { } ) ,
36
- ...( query . model ? { 'vehicle.modelId' : query . model } : { } ) , // create one for make
36
+ ...( query . model ? { 'vehicle.modelId' : query . model } : { } ) ,
37
+ ...( query . make ? { 'vehicle.makeId' : query . make } : { } ) ,
37
38
...( query . transmission
38
39
? { 'vehicle.transmission' : query . transmission }
39
40
: { } ) ,
You can’t perform that action at this time.
0 commit comments