[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>({ } = useForm<ContributeQuestionData>({
defaultValues: { defaultValues: {
date: startOfMonth(new Date()), 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)}> onSubmit={handleSubmit(onSubmit)}>
<div className="min-w-[113px] max-w-[113px] flex-1"> <div className="min-w-[113px] max-w-[113px] flex-1">
<Select <Select
defaultValue="coding"
label="Type" label="Type"
options={QUESTION_TYPES} options={QUESTION_TYPES}
required={true} required={true}

Loading…
Cancel
Save