|
|
@@ -57,6 +57,7 @@ export default {
|
|
57
|
57
|
aspectQuestions: [],
|
|
58
|
58
|
responses: [],
|
|
59
|
59
|
currentStep: 0,
|
|
|
60
|
+ currentProfileId: null,
|
|
60
|
61
|
survey: null,
|
|
61
|
62
|
invalidResponse: false,
|
|
62
|
63
|
authenticator: {},
|
|
|
@@ -84,6 +85,7 @@ export default {
|
|
84
|
85
|
let profileId
|
|
85
|
86
|
if (profilesFromUserId.length === 1) {
|
|
86
|
87
|
profileId = profilesFromUserId[0].profile_id
|
|
|
88
|
+ this.currentProfileId = profileId
|
|
87
|
89
|
}
|
|
88
|
90
|
const profile = await fetchProfileByProfileId(profileId)
|
|
89
|
91
|
profile.responses.forEach(response => {
|
|
|
@@ -92,7 +94,7 @@ export default {
|
|
92
|
94
|
val: response.val,
|
|
93
|
95
|
})
|
|
94
|
96
|
})
|
|
95
|
|
- this.currentStep = 6
|
|
|
97
|
+ this.currentStep = this.responses.length + 3
|
|
96
|
98
|
this.goToStep(this.currentStep)
|
|
97
|
99
|
}
|
|
98
|
100
|
}
|