Skip to content

Commit 69a42fa

Browse files
committed
fix(richtext-lexical): remove unnecessary JSON.parse(JSON.stringify()) of blocks feature formData
1 parent 8c2779c commit 69a42fa

File tree

1 file changed

+1
-1
lines changed
  • packages/richtext-lexical/src/features/blocks/component

1 file changed

+1
-1
lines changed

packages/richtext-lexical/src/features/blocks/component/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export const BlockComponent: React.FC<Props> = (props) => {
7272
apiRoute: config.routes.api,
7373
body: {
7474
id,
75-
data: JSON.parse(JSON.stringify(formData)),
75+
data: formData,
7676
operation: 'update',
7777
schemaPath: schemaFieldsPath,
7878
},

0 commit comments

Comments
 (0)