Skip to content

Commit

Permalink
Merge pull request #14 from getcronit/main
Browse files Browse the repository at this point in the history
fix: update onUpdateValue parameter in MdxField component
  • Loading branch information
schettn authored Oct 29, 2024
2 parents 40e04ea + 19f2513 commit 90f7206
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/jaen-fields-mdx/src/MdxField/MdxField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ export const MdxField = connectField<MdxFieldValue, MdxFieldProps>(
return (
<LayzEditor
components={combinedComponents}
onUpdateValue={(_: MdastRoot, value: string) => {
jaenField.onUpdateValue(value)
onUpdateValue={(mdast: MdastRoot) => {
jaenField.onUpdateValue(mdast)
}}
rawValue={typeof value === 'string' ? undefined : value}
value={typeof value === 'string' ? value : undefined}
Expand Down

0 comments on commit 90f7206

Please sign in to comment.