Skip to content

Commit

Permalink
FIX Update prop type of elementId to number or string
Browse files Browse the repository at this point in the history
  • Loading branch information
raissanorth committed Oct 23, 2018
1 parent a8070e4 commit 7242075
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/dist/js/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/src/components/ElementEditor/HoverBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class HoverBar extends Component {

HoverBar.propTypes = {
elementTypes: PropTypes.arrayOf(elementTypeType).isRequired,
elementId: PropTypes.number.isRequired,
elementId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
elementalAreaId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
};
export { HoverBar as Component };
Expand Down

0 comments on commit 7242075

Please # to comment.