Project

General

Profile

Actions

Bug #31546

closed

cant use customBreadcrumbs in pagelayout

Added by Maria Agaphontzev almost 4 years ago. Updated almost 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 #1

Updated by Maria Agaphontzev almost 4 years ago

  • Description updated (diff)
Actions #2

Updated by Maria Agaphontzev almost 4 years ago

  • Subject changed from cant use customBreadctumbs in pagelayout to cant use customBreadcrumbs in pagelayout
Actions #3

Updated by The Foreman Bot almost 4 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/8217 added
Actions #4

Updated by The Foreman Bot almost 4 years ago

  • Fixed in Releases 2.4.0 added
Actions #5

Updated by Maria Agaphontzev almost 4 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF