mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-16 00:00:03 +01:00
remove warnings
This commit is contained in:
parent
6ff87ff092
commit
68b688e52b
2 changed files with 3 additions and 3 deletions
|
@ -19,7 +19,6 @@ import React from 'react';
|
|||
import { Container } from 'flux/utils';
|
||||
import { Button } from 'react-bootstrap';
|
||||
import FileSaver from 'file-saver';
|
||||
import _ from 'lodash';
|
||||
|
||||
import ScenarioStore from './scenario-store';
|
||||
import ICStore from '../ic/ic-store';
|
||||
|
|
|
@ -35,6 +35,9 @@ class WidgetValue extends Component {
|
|||
|
||||
// TODO does the following line make sense?
|
||||
const ICid = props.icIDs[0];
|
||||
let signalID = props.widget.signalIDs[0];
|
||||
let signal = props.signals.find(sig => sig.id === signalID);
|
||||
|
||||
|
||||
// update value
|
||||
let value = '';
|
||||
|
@ -53,8 +56,6 @@ class WidgetValue extends Component {
|
|||
|
||||
// Update unit (assuming there is exactly one signal for this widget)
|
||||
let unit = '';
|
||||
let signalID = props.widget.signalIDs[0];
|
||||
let signal = props.signals.find(sig => sig.id === signalID);
|
||||
if(signal !== undefined){
|
||||
unit = signal.unit;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue