Project

General

Profile

Bug #24200

Fix ChartBox storybook

Added by boaz shust 5 months ago. Updated 2 months ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
Development tools
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

When selecting Charts -> Without Data or Charts -> With Data + Modal, I get the following error:

Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports. Check the render method of `ChartBox`.

Associated revisions

Revision 9f4fa111 (diff)
Added by Boaz Shuster 4 months ago

Fixes #24200 - Fix ChartBox storybook

ChartBox storybook failed to load: * Without Data * With Data + Modal

The error message was:
Element type is invalid: expected a string (for built-in components)
or a class/function (for composite components) but got: undefined

Because the "type" prop was missing, the "Chart" component was
"undefined" showing this error message.

To fix this, I set the "type" props to be required and
set it to "donut" in the storybook.

History

#1 Updated by The Foreman Bot 5 months ago

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

#2 Updated by Ohad Levy 4 months ago

  • Fixed in Releases 1.20.0 added

#3 Updated by Anonymous 4 months ago

  • Status changed from Ready For Testing to Closed

#4 Updated by Tomer Brisker 2 months ago

  • Assignee set to boaz shust
  • Category set to Development tools

Also available in: Atom PDF