Merge pull request #348 from Safelite/feature/digital/SSR-538

reset glass/supporting items without resetting answers on the page
This commit is contained in:
katiekroell 2023-06-20 13:31:43 -04:00 committed by GitHub
commit b986857615
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -910,7 +910,8 @@ export const useMainStore = defineStore({
);
if (haveMoldingQuestionAnswersChanged) {
this.resetPartsAndDependencies();
this.updateGlassParts(null);
this.updateSupportingItems(null);
this.updateCapabilityQuestionAnswers(null);
this.updatePageData({ page: issPageValues.CAPABILITY_QUESTIONS, data: null });
}
@ -935,7 +936,8 @@ export const useMainStore = defineStore({
);
if (haveCapabilityQuestionAnswersChanged) {
this.resetPartsAndDependencies();
this.updateGlassParts(null);
this.updateSupportingItems(null);
}
// Save new values