Project

General

Profile

Bug #31546

cant use customBreadcrumbs in pagelayout

Added by Maria Agaphontzev 4 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Category:
JavaScript stack
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
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)
```

Associated revisions

Revision 3080f723 (diff)
Added by Maria Agaphontzev 4 months ago

Fixes #31546 - cant use customBreadcrumbs in pagelayout

History

#1 Updated by Maria Agaphontzev 4 months ago

  • Description updated (diff)

#2 Updated by Maria Agaphontzev 4 months ago

  • Subject changed from cant use customBreadctumbs in pagelayout to cant use customBreadcrumbs in pagelayout

#3 Updated by The Foreman Bot 4 months ago

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

#4 Updated by The Foreman Bot 4 months ago

  • Fixed in Releases 2.4.0 added

#5 Updated by Maria Agaphontzev 4 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF