Fix console error on create page
This commit is contained in:
parent
a9ea335cd1
commit
51ceb62871
|
@ -210,7 +210,9 @@ export function NewContract(props: {
|
||||||
max: MAX_DESCRIPTION_LENGTH,
|
max: MAX_DESCRIPTION_LENGTH,
|
||||||
placeholder: descriptionPlaceholder,
|
placeholder: descriptionPlaceholder,
|
||||||
disabled: isSubmitting,
|
disabled: isSubmitting,
|
||||||
defaultValue: JSON.parse(params?.description ?? '{}'),
|
defaultValue: params?.description
|
||||||
|
? JSON.parse(params.description)
|
||||||
|
: undefined,
|
||||||
})
|
})
|
||||||
|
|
||||||
const isEditorFilled = editor != null && !editor.isEmpty
|
const isEditorFilled = editor != null && !editor.isEmpty
|
||||||
|
|
Loading…
Reference in New Issue
Block a user