Project

General

Profile

Actions

Bug #23246

closed

Breadcrumb switcher causes warnings in browser console

Added by Tomáš Strachota about 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Web Interface
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Three warnings appear upon each breadcrumb switcher opening:

Warning: Failed prop type: Invalid prop `resourceSwitcherItems[0].id` of type `number` supplied to `BreadcrumbBar`, expected `string`.
    in BreadcrumbBar (created by Connect(BreadcrumbBar))
    in Connect(BreadcrumbBar)
    in Provider

Warning: Failed prop type: Invalid prop `resources[0].id` of type `number` supplied to `BreadcrumbSwitcher`, expected `string`.
    in BreadcrumbSwitcher (created by BreadcrumbBar)
    in BreadcrumbBar (created by Connect(BreadcrumbBar))
    in Connect(BreadcrumbBar)
    in Provider
Warning: Failed prop type: Invalid prop `resources[0].id` of type `number` supplied to `BreadcrumbSwitcherPopover`, expected `string`.
    in BreadcrumbSwitcherPopover (created by BreadcrumbSwitcher)
    in BreadcrumbSwitcher (created by BreadcrumbBar)
    in ol (created by Breadcrumb)
    in Breadcrumb (created by Breadcrumb)
    in Breadcrumb (created by Breadcrumb)
    in Breadcrumb (created by BreadcrumbBar)
    in div (created by BreadcrumbBar)
    in BreadcrumbBar (created by Connect(BreadcrumbBar))
    in Connect(BreadcrumbBar)
    in Provider

Related issues 1 (0 open1 closed)

Related to Foreman - Feature #22855: Add redux container for breadcrumb switcherClosedAmir Fefer03/12/2018Actions
Actions #1

Updated by Tomáš Strachota about 6 years ago

  • Related to Feature #22855: Add redux container for breadcrumb switcher added
Actions #2

Updated by Ohad Levy about 6 years ago

where can you reproduce it? (i wasnt able to) - also is it related to #23249?

Actions #3

Updated by Tomáš Strachota about 6 years ago

It could be related to the type of ids that api returns, I'm not sure. I didn't observe infinity list of pages when the warnings appeared though.

I'm able to reproduce it for example on hosts detail page:
  1. open console in your browser
  2. go to detail of a host
  3. click on the bredcrumbs switcher button
  4. observe several "Invalid prop `resources [0].id` of type `number`" warnings
Actions #4

Updated by Amir Fefer almost 6 years ago

Tomáš Strachota wrote:

It could be related to the type of ids that api returns, I'm not sure. I didn't observe infinity list of pages when the warnings appeared though.

I'm able to reproduce it for example on hosts detail page:
  1. open console in your browser
  2. go to detail of a host
  3. click on the bredcrumbs switcher button
  4. observe several "Invalid prop `resources [0].id` of type `number`" warnings

I can't reproduce it either, could you try it again and if this issue still occurs, paste here the api respond?

Actions #5

Updated by Tomáš Strachota almost 6 years ago

  • Status changed from New to Closed

I can't reproduce it now. I guess it's been fixed somewhere on the way. Closing.

Actions #6

Updated by Walden Raines almost 6 years ago

  • Target version deleted (219)
Actions

Also available in: Atom PDF