mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
backwards compatibility of plot
This commit is contained in:
parent
116d3de3fa
commit
57084222c1
1 changed files with 5 additions and 0 deletions
|
@ -207,6 +207,11 @@ class Plot extends React.Component {
|
|||
|
||||
const lines = this.state.data.map((values, index) => {
|
||||
let signalID = this.props.signalIDs[index];
|
||||
|
||||
if(this.props.lineColors === undefined || this.props.lineColors === null){
|
||||
this.props.lineColors = [] // for backwards compatibility
|
||||
}
|
||||
|
||||
if (typeof this.props.lineColors[signalID] === "undefined") {
|
||||
this.props.lineColors[signalID] = newLineColor(signalID);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue