CSR-343 Fix bug
This commit is contained in:
parent
7796520147
commit
960fec3926
1 changed files with 7 additions and 4 deletions
|
|
@ -105,6 +105,9 @@ components: {
|
|||
},
|
||||
computed: {
|
||||
isForwardActionDisabled() {
|
||||
return Object.keys(this.matchedParts).length !== this.PartsFromApi.partsOrQuestions.length;
|
||||
},
|
||||
matchedParts() {
|
||||
const matchedParts = [];
|
||||
|
||||
// Match them to the parts from the API.
|
||||
|
|
@ -114,9 +117,9 @@ computed: {
|
|||
|
||||
if (selectedPartData)
|
||||
matchedParts.push(selectedPartData);
|
||||
})
|
||||
|
||||
return Object.keys(matchedParts).length !== this.PartsFromApi.partsOrQuestions.length;
|
||||
})
|
||||
|
||||
return matchedParts;
|
||||
},
|
||||
PartsOrQuestions() {
|
||||
const partsData = this.PartsFromApi;
|
||||
|
|
@ -177,7 +180,7 @@ methods: {
|
|||
}
|
||||
|
||||
// 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.
|
||||
// this.$router.navigateAfterSave(
|
||||
|
|
|
|||
Loading…
Reference in a new issue