mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2026-02-09 05:25:37 +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>({
|
||||
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}
|
||||
|
||||
Reference in New Issue
Block a user