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)
|
||||
await this.mainStore.saveCapabilityQuestionAnswers(questionAnswersArray);
|
||||
// get parts from the capabilityQuestionAnswers
|
||||
const partsOrQuestions = this.partsOrQuestionsData;
|
||||
// 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);
|
||||
// TODO call get parts from the capabilityQuestionAnswers endpoint
|
||||
this.navigateForward(this.partsOrQuestionsData, null);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue