Skip to content

Commit

Permalink
Fix ReferenceArrayInputView propTypes
Browse files Browse the repository at this point in the history
The propTypes for `resource` was marked as required while the TS definition was marked as optional.

I'm getting a warning in my application when using `ReferenceArrayInput` without a `resource` because of this.
  • Loading branch information
ValentinH committed Feb 15, 2021
1 parent 8525f83 commit b217ae9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ ReferenceArrayInputView.propTypes = {
meta: PropTypes.object,
onChange: PropTypes.func,
options: PropTypes.object,
resource: PropTypes.string.isRequired,
resource: PropTypes.string,
setFilter: PropTypes.func,
setPagination: PropTypes.func,
setSort: PropTypes.func,
Expand Down

0 comments on commit b217ae9

Please sign in to comment.