diff --git a/packages/json-react-layouts/src/middlewares.ts b/packages/json-react-layouts/src/middlewares.ts index 55ae27a..49d56e2 100644 --- a/packages/json-react-layouts/src/middlewares.ts +++ b/packages/json-react-layouts/src/middlewares.ts @@ -17,7 +17,8 @@ export type MiddlwareHandler = ( diff --git a/packages/json-react-layouts/src/renderers/component-renderer.tsx b/packages/json-react-layouts/src/renderers/component-renderer.tsx index 77fcd66..9e73d5b 100644 --- a/packages/json-react-layouts/src/renderers/component-renderer.tsx +++ b/packages/json-react-layouts/src/renderers/component-renderer.tsx @@ -54,11 +54,11 @@ export const ComponentRenderer: React.FC = ({ return rendered } - const { componentType, ...rest } = componentProps + const { componentType, componentRenderPath, ...rest } = componentProps const middlewareRender = componentMiddleware( - { layoutType: componentType, ...rest }, + { layoutType: componentType, renderPath: componentRenderPath, ...rest }, middlewareProps, componentServices, render, diff --git a/packages/json-react-layouts/src/renderers/composition-renderer.tsx b/packages/json-react-layouts/src/renderers/composition-renderer.tsx index 8b653b6..023f970 100644 --- a/packages/json-react-layouts/src/renderers/composition-renderer.tsx +++ b/packages/json-react-layouts/src/renderers/composition-renderer.tsx @@ -98,6 +98,7 @@ export const CompositionRenderer: React.FunctionComponent