1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-09 00:00:01 +01:00

Merge branch '156-plot-lines-disappear-when-pausing' into 'develop'

Resolve "Plot lines disappear when pausing"

Closes #156

See merge request acs/public/villas/VILLASweb!30
This commit is contained in:
Markus Grigull 2018-05-04 13:22:06 +02:00
commit 05d9cd7d3a

View file

@ -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];