CSR-1146 | Empty arrays are inserted on refresh - fix
This commit is contained in:
parent
73aa9da0b8
commit
17b6bd4582
1 changed files with 6 additions and 4 deletions
|
|
@ -1255,10 +1255,12 @@ export const actions = {
|
||||||
additionalAuthFlag: "",
|
additionalAuthFlag: "",
|
||||||
},
|
},
|
||||||
partSelection: {
|
partSelection: {
|
||||||
hasAnsweredPartQuestions: !!order.damage.partQuestionAnswers,
|
hasAnsweredPartQuestions: !!order.damage.partQuestionAnswers?.length,
|
||||||
hasAnsweredMoldingQuestions: !!order.damage.moldingQuestionAnswers,
|
hasAnsweredMoldingQuestions: !!order.damage.moldingQuestionAnswers?.length,
|
||||||
hasAnsweredCapabilityQuestions: !!order.damage.capabilityQuestionAnswers,
|
hasAnsweredCapabilityQuestions: !!order.damage.capabilityQuestionAnswers?.length,
|
||||||
hasManuallySelectedParts: !!context.state.applicationUser.pageData["vehicle-parts"],
|
hasManuallySelectedParts:
|
||||||
|
!!context.state.applicationUser.pageData["vehicle-parts"]?.partsOrQuestions
|
||||||
|
.length,
|
||||||
},
|
},
|
||||||
vehicle: {
|
vehicle: {
|
||||||
year: vehicle.year,
|
year: vehicle.year,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue