Merge pull request #999 from Safelite/features/INSR-7950

Fix for CORS errors for vehicles that have body styles with a non-alphanumeric value in them.
This commit is contained in:
Jeremy-Z 2026-01-08 12:55:44 -05:00 committed by GitHub
commit 4aa13f34cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1352,10 +1352,11 @@ export const useMainStore = defineStore({
async setVehicle() {
const encodedMake = encodeURIComponent(this.order.vehicle.make);
const encodedModel = encodeURIComponent(this.order.vehicle.model);
const encodedStyle = encodeURIComponent(this.order.vehicle.style);
const response = await globalMethods
.callHttpClient({
method: endpoints.GetVehicle.method,
endpoint: `${endpoints.GetVehicle.url}/${this.order.vehicle.year}/${encodedMake}/${encodedModel}/${this.order.vehicle.style}`,
endpoint: `${endpoints.GetVehicle.url}/${this.order.vehicle.year}/${encodedMake}/${encodedModel}/${encodedStyle}`,
payload: {}
});
this.updateVehicle(response.data);