We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d66ba75 + b41139f commit bfdd8ecCopy full SHA for bfdd8ec
frontend/components/questions/question-form-modal.tsx
@@ -52,7 +52,11 @@ const QuestionFormModal: React.FC<QuestionFormModalProps> = ({ ...props }) => {
52
e.preventDefault();
53
54
props.handleSubmit(question);
55
- setQuestion(initialQuestionState);
+ if (props.initialData) {
56
+ setQuestion(props.initialData);
57
+ } else {
58
+ setQuestion(initialQuestionState);
59
+ }
60
};
61
62
const handleExit = () => {
0 commit comments