Fixing bug

This commit is contained in:
Michaela Brydon 2024-05-01 21:41:39 -04:00
parent 0bd9bb0708
commit 51972491e7

View file

@ -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);
}
}
};