Skip to content

Commit b9832f4

Browse files
authored
docs: fix syntax issue in blocks field (#11855)
<!-- Thank you for the PR! Please go through the checklist below and make sure you've completed all the steps. Please review the [CONTRIBUTING.md](https://github.com/payloadcms/payload/blob/main/CONTRIBUTING.md) document in this repository if you haven't already. The following items will ensure that your PR is handled as smoothly as possible: - PR Title must follow conventional commits format. For example, `feat: my new feature`, `fix(plugin-seo): my fix`. - Minimal description explained as if explained to someone not immediately familiar with the code. - Provide before/after screenshots or code diffs if applicable. - Link any related issues/discussions from GitHub or Discord. - Add review comments if necessary to explain to the reviewer the logic behind a change --> ### What? This PR fixes the config example in the block field page. ### Why? The syntax was incorrect ### How? Missing object property
1 parent a675c04 commit b9832f4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Diff for: docs/fields/blocks.mdx

+6-4
Original file line numberDiff line numberDiff line change
@@ -359,10 +359,12 @@ const config = buildConfig({
359359
name: 'editor',
360360
type: 'richText',
361361
editor: lexicalEditor({
362-
BlocksFeature({
363-
// Same reference can be reused anywhere, even in the lexical editor, without incurred performance hit
364-
blocks: ['TextBlock'],
365-
})
362+
features: [
363+
BlocksFeature({
364+
// Same reference can be reused anywhere, even in the lexical editor, without incurred performance hit
365+
blocks: ['TextBlock'],
366+
}),
367+
],
366368
})
367369
},
368370
],

0 commit comments

Comments
 (0)