diff --git a/src/containers/stage.jsx b/src/containers/stage.jsx index d5e4b3998..e0e3096a1 100644 --- a/src/containers/stage.jsx +++ b/src/containers/stage.jsx @@ -112,7 +112,9 @@ class Stage extends React.Component { } startColorPickingLoop () { this.intervalId = setInterval(() => { - this.setState({colorInfo: this.getColorInfo(this.pickX, this.pickY)}); + if (typeof this.pickX === 'number') { + this.setState({colorInfo: this.getColorInfo(this.pickX, this.pickY)}); + } }, 30); } stopColorPickingLoop () {