CSR-748 Fix vehicle-parts defect

This commit is contained in:
Katie 2022-11-09 11:52:22 -05:00
parent 5e5fbc5f0e
commit 1944aadb36
2 changed files with 9 additions and 1 deletions

View file

@ -45,6 +45,7 @@ export default {
}; };
}, },
mounted() { mounted() {
// Need this here and in the watch for vehicle-parts, unless there'a better way
if (this.isChecked) { if (this.isChecked) {
this.handleChange(this.modelValue); this.handleChange(this.modelValue);
} }
@ -188,6 +189,13 @@ export default {
fieldOptions, // only need to expose this for unit test purposes fieldOptions, // only need to expose this for unit test purposes
}; };
}, },
watch: {
isChecked(isChecked) {
if (isChecked) {
this.handleChange(this.modelValue)
}
}
}
}; };
</script> </script>

View file

@ -188,7 +188,7 @@ export default {
); );
// TODO KO delete after quote MVP // TODO KO delete after quote MVP
// this.navigateForward(matchedParts, null, this.shouldGoToHeritageQuote); this.navigateForward(matchedParts, null, this.shouldGoToHeritageQuote);
// Navigate to the next page // Navigate to the next page
// this.navigateForward(matchedParts); // this.navigateForward(matchedParts);
}, },