CSR-110: fixes to recalling user state on molding-questions
This commit is contained in:
parent
6e7a791e99
commit
924157cb80
1 changed files with 2 additions and 2 deletions
|
|
@ -412,7 +412,7 @@ export default {
|
|||
LoadInitialData() {
|
||||
|
||||
// are there alreadyAnsweredQuestions?
|
||||
const alreadyAnsweredQuestions = store.getters.damage.partQuestionAnswers;
|
||||
const alreadyAnsweredQuestions = store.getters.damage.moldingQuestionAnswers;
|
||||
|
||||
this.moldingQuestionsData = this.pageData.partsOrQuestions.filter(x => x.parts[0].childPartQuestions.length).map((glass, i) => {
|
||||
glass.key = glass.glassLocation + "-" + glass.glassName;
|
||||
|
|
@ -426,7 +426,7 @@ export default {
|
|||
|
||||
alreadyAnsweredQuestions?.forEach((savedPart) => {
|
||||
|
||||
if (!savedPart.glassLocation || !savedPart.glassName || !savedPart.answeredQuestions || !savedPart.result) {
|
||||
if (!savedPart.glassLocation || !savedPart.glassName || !savedPart.answeredQuestions || !savedPart.partNum) {
|
||||
return;
|
||||
}
|
||||
if (glass.glassLocation === savedPart.glassLocation && glass.glassName === savedPart.glassName) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue