Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
survey
Commits
53f4f31e
Commit
53f4f31e
authored
Aug 17, 2022
by
Yoon, Daeki
😅
Browse files
guestId 정정
parent
4f3d7a8c
Changes
1
Show whitespace changes
Inline
Side-by-side
frontend/src/surveys/AnswerSurvey.tsx
View file @
53f4f31e
...
@@ -57,7 +57,7 @@ export const AnswerSurvey = () => {
...
@@ -57,7 +57,7 @@ export const AnswerSurvey = () => {
otherAnswers
.
map
((
answer
)
=>
({
otherAnswers
.
map
((
answer
)
=>
({
questionId
:
answer
.
question
.
_id
!
,
questionId
:
answer
.
question
.
_id
!
,
surveyId
:
survey
.
_id
!
,
surveyId
:
survey
.
_id
!
,
q
uestId
:
"
guest
"
,
g
uestId
:
"
guest
"
,
content
:
answer
.
content
,
content
:
answer
.
content
,
}))
}))
);
);
...
@@ -68,11 +68,6 @@ export const AnswerSurvey = () => {
...
@@ -68,11 +68,6 @@ export const AnswerSurvey = () => {
);
);
console
.
log
(
"
result:
"
,
result
);
console
.
log
(
"
result:
"
,
result
);
// const newAnswer: IAnswer = await answerApi.saveAnswers(formData);
// console.log(newAnswer);
// sessionStorage.setItem(`survey_${surveyId}`, surveyId ?? "");
// navigate("/survey/complete", { replace: false });
}
catch
(
error
)
{
}
catch
(
error
)
{
catchErrors
(
error
,
setError
);
catchErrors
(
error
,
setError
);
}
finally
{
}
finally
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment