Fix wrong prop types for metadata
This commit is contained in:
parent
9a36270d3e
commit
0266523a5c
2 changed files with 3 additions and 3 deletions
|
@ -58,7 +58,7 @@ let FileActionsRow = React.createClass({
|
|||
propTypes: {
|
||||
streamName: React.PropTypes.string,
|
||||
sdHash: React.PropTypes.string.isRequired,
|
||||
metadata: React.PropTypes.object
|
||||
metadata: React.PropTypes.oneOfType([React.PropTypes.object, React.PropTypes.string]),
|
||||
},
|
||||
getInitialState: function() {
|
||||
return {
|
||||
|
@ -226,7 +226,7 @@ export let FileActions = React.createClass({
|
|||
propTypes: {
|
||||
streamName: React.PropTypes.string,
|
||||
sdHash: React.PropTypes.string.isRequired,
|
||||
metadata: React.PropTypes.object
|
||||
metadata: React.PropTypes.oneOfType([React.PropTypes.object, React.PropTypes.string]),
|
||||
},
|
||||
getInitialState: function() {
|
||||
return {
|
||||
|
|
|
@ -57,7 +57,7 @@ export let FileTileStream = React.createClass({
|
|||
_isMounted: null,
|
||||
|
||||
propTypes: {
|
||||
metadata: React.PropTypes.object,
|
||||
metadata: React.PropTypes.oneOfType([React.PropTypes.string, React.PropTypes.object]),
|
||||
sdHash: React.PropTypes.string,
|
||||
hideOnRemove: React.PropTypes.bool,
|
||||
hidePrice: React.PropTypes.bool,
|
||||
|
|
Loading…
Reference in a new issue