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
0150d3d8
Commit
0150d3d8
authored
Jan 04, 2023
by
jang dong hyeok
Browse files
불필요한 차트관련 코드삭제 및 빈 질문일때 작성되지 않게하기
parent
c0481dda
Changes
3
Hide whitespace changes
Inline
Side-by-side
frontend/src/charts/scatters/index.tsx
View file @
0150d3d8
export
{
CirclesWithG
}
from
"
./CirclesWithG
"
;
frontend/src/surveys/Question.tsx
View file @
0150d3d8
...
...
@@ -18,9 +18,16 @@ export const Question = ({
const
isEditing
=
question
.
isEditing
;
async
function
handleEditComplete
()
{
question
.
isEditing
=
false
;
console
.
log
(
"
editing completed:
"
,
question
);
handleQuestion
(
question
);
question
.
content
.
choices
.
map
((
choice
)
=>
{
if
(
choice
.
text
.
trim
()
===
""
)
{
alert
(
"
질문작성이 완료되지 않았습니다.
"
);
return
(
question
.
isEditing
=
true
);
}
else
{
question
.
isEditing
=
false
;
console
.
log
(
"
editing completed:
"
,
question
);
handleQuestion
(
question
);
}
});
}
function
handleSelect
(
event
:
React
.
ChangeEvent
<
HTMLSelectElement
>
)
{
...
...
frontend/src/types/index.ts
View file @
0150d3d8
...
...
@@ -59,6 +59,7 @@ export interface IRadio extends IQuestionData {
content
:
IBasicContent
&
{
hasOther
:
boolean
;
otherText
:
string
;
};
}
...
...
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