From 4dc2175196ff2d9b98aaaf8f7933482a76ce8ab5 Mon Sep 17 00:00:00 2001 From: Markus Grigull Date: Fri, 4 May 2018 13:09:55 +0200 Subject: [PATCH] Fix plot pausing --- src/components/widget-plot/plot.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/widget-plot/plot.js b/src/components/widget-plot/plot.js index 702940d..c48c81b 100644 --- a/src/components/widget-plot/plot.js +++ b/src/components/widget-plot/plot.js @@ -126,11 +126,15 @@ class Plot extends React.Component { } tick = () => { - if (this.state.data == null || this.props.paused === true) { + if (this.state.data == null) { this.setState({ lines: null }); return; } + if (this.props.paused === true) { + return; + } + // calculate yRange let yRange = [0, 0];