Merge pull request #1365 from kchadha/monitor-proptype
Fixing monitor prop type warning for scalar variable monitors.
This commit is contained in:
1 file changed
+3
-1
@@ -42,7 +42,9 @@ MonitorComponent.propTypes = {
|
||||
componentRef: PropTypes.func.isRequired,
|
||||
label: PropTypes.string.isRequired,
|
||||
onDragEnd: PropTypes.func.isRequired,
|
||||
value: PropTypes.string.isRequired
|
||||
value: PropTypes.oneOfType([
|
||||
PropTypes.string,
|
||||
PropTypes.number])
|
||||
};
|
||||
|
||||
MonitorComponent.defaultProps = {
|
||||
|
||||
Reference in new issue
Block a user