Project

General

Profile

Actions

Bug #31546

closed

cant use customBreadcrumbs in pagelayout

Added by Maria Agaphontzev about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Category:
JavaScript stack
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

When trying to pass a component to customBreadctumbs while using pageLayout there is an error as it's trying to render an object `{customBreadctumbs: your_component_here}` instead the component itself
```
Uncaught Invariant Violation: Objects are not valid as a React child (found: object with keys {customBreadcrumbs}). If you meant to render a collection of children, use an array instead.
in div (created by PageLayout)
in div (created by PageLayout)
in div (created by PageLayout)
in PageLayout (created by AuditsPage)
```

Actions

Also available in: Atom PDF