CSR-1146 | Empty arrays are inserted on refresh - fix

This commit is contained in:
Scott Kiener 2023-07-10 10:01:37 -04:00
parent 73aa9da0b8
commit 17b6bd4582

View file

@ -1255,10 +1255,12 @@ export const actions = {
additionalAuthFlag: "",
},
partSelection: {
hasAnsweredPartQuestions: !!order.damage.partQuestionAnswers,
hasAnsweredMoldingQuestions: !!order.damage.moldingQuestionAnswers,
hasAnsweredCapabilityQuestions: !!order.damage.capabilityQuestionAnswers,
hasManuallySelectedParts: !!context.state.applicationUser.pageData["vehicle-parts"],
hasAnsweredPartQuestions: !!order.damage.partQuestionAnswers?.length,
hasAnsweredMoldingQuestions: !!order.damage.moldingQuestionAnswers?.length,
hasAnsweredCapabilityQuestions: !!order.damage.capabilityQuestionAnswers?.length,
hasManuallySelectedParts:
!!context.state.applicationUser.pageData["vehicle-parts"]?.partsOrQuestions
.length,
},
vehicle: {
year: vehicle.year,