[questions][fix] remove default type when creating question

pull/522/head
Jeff Sieu 2 years ago
parent 0841e5ff76
commit ffbb6a29f2

@ -53,6 +53,10 @@ export default function ContributeQuestionForm({
} = useForm<ContributeQuestionData>({
defaultValues: {
date: startOfMonth(new Date()),
...({
questionType: null,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
} as any),
},
});
@ -101,7 +105,6 @@ export default function ContributeQuestionForm({
onSubmit={handleSubmit(onSubmit)}>
<div className="min-w-[113px] max-w-[113px] flex-1">
<Select
defaultValue="coding"
label="Type"
options={QUESTION_TYPES}
required={true}

Loading…
Cancel
Save