Actions
Bug #23246
closedBreadcrumb switcher causes warnings in browser console
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Web Interface
Target version:
-
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
Updated by Tomáš Strachota over 6 years ago
- Related to Feature #22855: Add redux container for breadcrumb switcher added
Updated by Ohad Levy over 6 years ago
where can you reproduce it? (i wasnt able to) - also is it related to #23249?
Updated by Tomáš Strachota over 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:- open console in your browser
- go to detail of a host
- click on the bredcrumbs switcher button
- observe several "Invalid prop `resources [0].id` of type `number`" warnings
Updated by Amir Fefer over 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:
- open console in your browser
- go to detail of a host
- click on the bredcrumbs switcher button
- 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?
Updated by Tomáš Strachota over 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