From ed0b3c0707f7e37ef6e64fbe45385f01333cdcc4 Mon Sep 17 00:00:00 2001 From: Karishma Chadha Date: Thu, 25 Jan 2018 11:21:28 -0500 Subject: [PATCH] Fixing monitor prop type warning for scalar variable monitors. --- src/components/monitor/monitor.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/monitor/monitor.jsx b/src/components/monitor/monitor.jsx index 35a2cac17..17b562120 100644 --- a/src/components/monitor/monitor.jsx +++ b/src/components/monitor/monitor.jsx @@ -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 = {