Merge pull request #674 from Safelite/bug/SSR-1210.3

Fixing bug
This commit is contained in:
michaela-brydon-safelite 2024-05-02 10:09:24 -04:00 committed by GitHub
commit e0f1925e3b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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