fix: payload rich text undefined data bug causing fallback rendering and 404 assets
Former-commit-id: c93558b9f6125760932bf983c9a68dbf17ebad55
This commit is contained in:
@@ -71,8 +71,8 @@ const jsxConverters: JSXConverters = {
|
||||
if (!Component) return acc;
|
||||
|
||||
const renderFn = ({ node }: any) => {
|
||||
// Pass all fields as props to the component
|
||||
return <Component {...node.fields} />;
|
||||
// Pass all fields as props to the component, and also as 'data' prop
|
||||
return <Component {...node.fields} data={node.fields} />;
|
||||
};
|
||||
|
||||
// Map both the direct slug and the block- prefixed slug
|
||||
|
||||
Reference in New Issue
Block a user