fix: github description not appearing (#459)

This commit is contained in:
Aaryan Khandelwal 2023-03-16 15:53:25 +05:30 committed by GitHub
parent d413dd1169
commit 27324ddd93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,7 +132,11 @@ export const IssueDescriptionForm: FC<IssueDetailsProps> = ({
</div> </div>
<span>{errors.name ? errors.name.message : null}</span> <span>{errors.name ? errors.name.message : null}</span>
<RemirrorRichTextEditor <RemirrorRichTextEditor
value={watch("description")} value={
watch("description") && watch("description") !== ""
? watch("description")
: watch("description_html")
}
placeholder="Describe the issue..." placeholder="Describe the issue..."
onBlur={() => { onBlur={() => {
setIsSubmitting(true); setIsSubmitting(true);