fix: undefined block content (#854)

This commit is contained in:
Aaryan Khandelwal 2023-04-17 17:21:15 +05:30 committed by GitHub
parent 6de54089cd
commit 600fedd5ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -168,7 +168,7 @@ export const CreateUpdateBlockInline: React.FC<Props> = ({
}); });
else { else {
setValue("description", {}); setValue("description", {});
setValue("description_html", `${watch("description_html")}<p>${res.response}</p>`); setValue("description_html", `${watch("description_html") ?? ""}<p>${res.response}</p>`);
} }
}) })
.catch((err) => { .catch((err) => {