Fixing bug
This commit is contained in:
parent
0bd9bb0708
commit
51972491e7
1 changed files with 2 additions and 13 deletions
|
|
@ -155,19 +155,8 @@ export default {
|
||||||
});
|
});
|
||||||
// save to store as order.damage.moldingQuestionArrays (array)
|
// save to store as order.damage.moldingQuestionArrays (array)
|
||||||
await this.mainStore.saveCapabilityQuestionAnswers(questionAnswersArray);
|
await this.mainStore.saveCapabilityQuestionAnswers(questionAnswersArray);
|
||||||
// get parts from the capabilityQuestionAnswers
|
// TODO call get parts from the capabilityQuestionAnswers endpoint
|
||||||
const partsOrQuestions = this.partsOrQuestionsData;
|
this.navigateForward(this.partsOrQuestionsData, null);
|
||||||
// eslint-disable-next-line no-restricted-syntax
|
|
||||||
for (const answer of questionAnswersArray) {
|
|
||||||
partsOrQuestions.find((partOrQuestion) =>
|
|
||||||
partOrQuestion.glassLocation === answer.glassLocation
|
|
||||||
&& partOrQuestion.glassName === answer.glassName).parts[0].childParts = [
|
|
||||||
{
|
|
||||||
partNumber: answer.partNum
|
|
||||||
}
|
|
||||||
];
|
|
||||||
}
|
|
||||||
this.navigateForward(partsOrQuestions, null);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue