Merge pull request #3122 from Safelite/nation/CASH-2481
CASH-2481 add null check to fix error involving external parameter
This commit is contained in:
commit
3fbce61798
1 changed files with 3 additions and 3 deletions
|
|
@ -253,17 +253,17 @@ export default {
|
||||||
const matchingMake = resultMap.makeQuestionInitialData?.filter(
|
const matchingMake = resultMap.makeQuestionInitialData?.filter(
|
||||||
(item) =>
|
(item) =>
|
||||||
item.toLowerCase() ===
|
item.toLowerCase() ===
|
||||||
store.getters.externalParameterVehicle.make.toLowerCase()
|
store.getters.externalParameterVehicle.make?.toLowerCase()
|
||||||
);
|
);
|
||||||
const matchingModel = resultMap.modelQuestionInitialData?.filter(
|
const matchingModel = resultMap.modelQuestionInitialData?.filter(
|
||||||
(item) =>
|
(item) =>
|
||||||
item.toLowerCase() ===
|
item.toLowerCase() ===
|
||||||
store.getters.externalParameterVehicle.model.toLowerCase()
|
store.getters.externalParameterVehicle.model?.toLowerCase()
|
||||||
);
|
);
|
||||||
const matchingStyle = resultMap.styleQuestionInitialData?.filter(
|
const matchingStyle = resultMap.styleQuestionInitialData?.filter(
|
||||||
(item) =>
|
(item) =>
|
||||||
item.toLowerCase() ===
|
item.toLowerCase() ===
|
||||||
store.getters.externalParameterVehicle.style.toLowerCase()
|
store.getters.externalParameterVehicle.style?.toLowerCase()
|
||||||
);
|
);
|
||||||
baseMixin.methods.dispatchStoreAction(
|
baseMixin.methods.dispatchStoreAction(
|
||||||
storeActions.UPDATE_EXTERNAL_PARAMETER_MMS,
|
storeActions.UPDATE_EXTERNAL_PARAMETER_MMS,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue