chore: minor fixes on pages (#557)

* feat: block sync

* chore: minor fixes on pages

* fix: remove dangerously set inner html

* fix: pages crud operations mutation

* fix: favorites mutation for recent pages

* fix: remove dangerously set inner html
This commit is contained in:
Aaryan Khandelwal 2023-03-29 00:20:00 +05:30 committed by GitHub
parent c0a471e916
commit b654d30aeb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 139 additions and 70 deletions

View file

@ -239,7 +239,11 @@ export const IssueForm: FC<IssueFormProps> = ({
control={control}
render={({ field: { value } }) => (
<RemirrorRichTextEditor
value={value}
value={
!value || (typeof value === "object" && Object.keys(value).length === 0)
? watch("description_html")
: value
}
onJSONChange={(jsonValue) => setValue("description", jsonValue)}
onHTMLChange={(htmlValue) => setValue("description_html", htmlValue)}
placeholder="Description"