CSR-343 Fix bug

This commit is contained in:
Katie 2022-06-29 09:22:14 -04:00
parent 7796520147
commit 960fec3926

View file

@ -105,6 +105,9 @@ components: {
}, },
computed: { computed: {
isForwardActionDisabled() { isForwardActionDisabled() {
return Object.keys(this.matchedParts).length !== this.PartsFromApi.partsOrQuestions.length;
},
matchedParts() {
const matchedParts = []; const matchedParts = [];
// Match them to the parts from the API. // Match them to the parts from the API.
@ -116,7 +119,7 @@ computed: {
matchedParts.push(selectedPartData); matchedParts.push(selectedPartData);
}) })
return Object.keys(matchedParts).length !== this.PartsFromApi.partsOrQuestions.length; return matchedParts;
}, },
PartsOrQuestions() { PartsOrQuestions() {
const partsData = this.PartsFromApi; const partsData = this.PartsFromApi;
@ -177,7 +180,7 @@ methods: {
} }
// Save parts to the store. // Save parts to the store.
store.commit(storeMutations.UPDATE_GLASS_PARTS, matchedParts); store.commit(storeMutations.UPDATE_GLASS_PARTS, this.matchedParts);
// Navigate to the next page. // Navigate to the next page.
// this.$router.navigateAfterSave( // this.$router.navigateAfterSave(