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:
commit
05d9cd7d3a
1 changed files with 5 additions and 1 deletions
|
@ -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];
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue