Skip to content

Commit

Permalink
fix issue with wrong value for mapview_url
Browse files Browse the repository at this point in the history
  • Loading branch information
manuGil committed Jun 25, 2024
1 parent 21b25f3 commit 634fc78
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/pages/survey/[_id]/[_question].vue
Original file line number Diff line number Diff line change
Expand Up @@ -172,15 +172,14 @@ const submitAnswers = async () => {
for (let i = 0; i < responseStore.answers.length; i++) {
let response_url = responseStore.responseUrl;
let question_url = responseStore.answers[i].question_url;
let mapview_url = responseStore.answers[i].mapview;
let mapview_url = responseStore.answers[i].mapview.url;
const answer_text = responseStore.answers[i].text;
console.log("submiting answer: ", answer_text);
responseStore.submitAnswer(
response_url,
question_url,
answer_text,
mapview_url
)
}
global.succes("Your answers have been submitted")
Expand Down

0 comments on commit 634fc78

Please sign in to comment.