Merge pull request #1216 from Safelite/feature/CSR-1146
CSR-1146 | Check for empty arrays (present after refresh)
This commit is contained in:
commit
7290338558
1 changed files with 6 additions and 4 deletions
|
|
@ -1309,10 +1309,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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue