From 634fc78b4af0f43f5c7a6e1a06c253406a29accf Mon Sep 17 00:00:00 2001 From: Manuel Garcia Date: Tue, 25 Jun 2024 19:52:52 +0200 Subject: [PATCH] fix issue with wrong value for mapview_url --- frontend/pages/survey/[_id]/[_question].vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/pages/survey/[_id]/[_question].vue b/frontend/pages/survey/[_id]/[_question].vue index beb82b0d..3ba31e34 100644 --- a/frontend/pages/survey/[_id]/[_question].vue +++ b/frontend/pages/survey/[_id]/[_question].vue @@ -172,7 +172,7 @@ 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( @@ -180,7 +180,6 @@ const submitAnswers = async () => { question_url, answer_text, mapview_url - ) } global.succes("Your answers have been submitted")