fix (live-preview): populates Lexical - blocks and inline blocks relations are not populated #8275
Labels
live-preview
@payloadcms/live-preview
plugin: richtext-lexical
@payloadcms/richtext-lexical
status: needs-triage
Possible bug which hasn't been reproduced yet
v3
Link to reproduction
No response
Environment Info
Describe the Bug
When author enter inline blocks or block if the block has relation field like upload or any other relation.
The data in the live preview message does not contain the document of the relation.
For now there's a need to call API for each relation and sometimes the live preview is not responding
Reproduction Steps
Clone:
https://github.com/tsemachh/payload/tree/bug(live-preview)-LexicalRelationsNotExpanded
pnpm dev live-preview
Debug on :
webpack://_N_E/packages/live-preview/src/traverseRichText.ts?7b26
Add to Test tab to the lexical content media block and see that it doesn't expand it regardless the depth provided
Example of debug:
Adapters and Plugins
No response
The text was updated successfully, but these errors were encountered: