Merge pull request #774 from Safelite/bug/brydon/SSR-1389.2
Forgot an endpoint
This commit is contained in:
commit
9d120a3e7b
1 changed files with 3 additions and 1 deletions
|
|
@ -1245,10 +1245,12 @@ export const useMainStore = defineStore({
|
||||||
},
|
},
|
||||||
|
|
||||||
setVehicle() {
|
setVehicle() {
|
||||||
|
const encodedMake = encodeURIComponent(this.order.vehicle.make);
|
||||||
|
const encodedModel = encodeURIComponent(this.order.vehicle.model);
|
||||||
return globalMethods
|
return globalMethods
|
||||||
.callHttpClient({
|
.callHttpClient({
|
||||||
method: endpoints.GetVehicle.method,
|
method: endpoints.GetVehicle.method,
|
||||||
endpoint: `${endpoints.GetVehicle.url}/${this.order.vehicle.year}/${this.order.vehicle.make}/${this.order.vehicle.model}/${this.order.vehicle.style}`,
|
endpoint: `${endpoints.GetVehicle.url}/${this.order.vehicle.year}/${encodedMake}/${encodedModel}/${this.order.vehicle.style}`,
|
||||||
payload: {}
|
payload: {}
|
||||||
})
|
})
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue