Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: avoid React warning about required proptype (#311)
"Warning: Failed prop type: The prop `items[0].name` is marked as required in `AxisSetup`, but its value is `undefined`. in AxisSetup (created by WithStyles(AxisSetup))" was sometimes popping up and it turned out sometimes there is no name available in the metadata for the item object. Changed the code to initialize the name to empty string when not available instead of passing undefined.
- Loading branch information