Skip to content

Commit

Permalink
fix: check empty name when creating qna source (#5519)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhixzhan authored and lei9444 committed Jan 14, 2021
1 parent 4b860aa commit dad8dcf
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ export const CreateQnAFromScratchModal: React.FC<CreateQnAFromModalProps> = (pro

formConfig.name.validate = validateName(qnaFiles);
const { formData, updateField, hasErrors, formErrors } = useForm(formConfig);
const disabled = hasErrors;

const disabled = hasErrors || !formData.name;
return (
<Dialog
dialogContentProps={{
Expand Down

0 comments on commit dad8dcf

Please sign in to comment.