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
71ea74d6
Commit
71ea74d6
authored
Jul 28, 2022
by
Yoon, Daeki
😅
Browse files
콘솔 출력 제거
parent
305afddb
Changes
3
Show whitespace changes
Inline
Side-by-side
frontend/src/profile/Profile.tsx
View file @
71ea74d6
...
...
@@ -28,7 +28,7 @@ export const Profile = () => {
async
function
getSurveys
()
{
const
surveys
:
SurveyType
[]
=
await
surveyApi
.
getSurveys
();
console
.
log
(
surveys
);
//
console.log(surveys);
setCardDatas
(
surveys
);
}
// let surveys = getSurvey(_id);
...
...
frontend/src/questions/Question.tsx
View file @
71ea74d6
...
...
@@ -28,7 +28,7 @@ export const Question = ({
const
[
question
,
setQuestion
]
=
useState
({
...
element
});
// const [isEditing, setIsEditing] = useState(false);
console
.
log
(
"
is editing in question:
"
,
isEditing
);
//
console.log("is editing in question:", isEditing);
async
function
handleEditComplete
()
{
try
{
...
...
@@ -186,7 +186,7 @@ export const Question = ({
key
=
{
key
}
id
=
{
question
.
_id
}
value
=
{
key
}
selected
=
{
key
===
element
.
type
}
//
selected={key === element.type}
>
{
value
}
</
option
>
...
...
frontend/src/survey/CreateSurvey.tsx
View file @
71ea74d6
...
...
@@ -35,7 +35,7 @@ export const CreateSurvey = () => {
const
initEditing
=
thisSurvey
.
questions
.
map
((
question
)
=>
{
return
{
qid
:
question
.
_id
,
isEditing
:
false
};
});
console
.
log
(
"
init editing
"
,
initEditing
);
//
console.log("init editing", initEditing);
setIsEditing
(
initEditing
);
setSurvey
(
thisSurvey
);
...
...
@@ -137,7 +137,7 @@ export const CreateSurvey = () => {
}
const
questions
=
survey
.
questions
;
console
.
log
(
questions
);
//
console.log(questions);
return
(
<>
...
...
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