mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2026-05-02 14:32:16 +08:00
[questions][fix] remove default type when creating question
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user