diff --git a/src/dashboard/dashboard.js b/src/dashboard/dashboard.js index 077de3f..d15a671 100644 --- a/src/dashboard/dashboard.js +++ b/src/dashboard/dashboard.js @@ -186,17 +186,17 @@ class Dashboard extends Component { componentDidUpdate(prevProps: Readonly
, prevState: Readonly, snapshot: SS) {
// open web sockets if ICs are already known and sockets are not opened yet
if (this.state.ics !== undefined && !Dashboard.webSocketsOpened) {
- // only open sockets of ICs with configured input or output signals
- let relevantICs = this.state.ics.filter(ic => {
- let result = false;
- this.state.configs.forEach(config => {
- if(ic.id === config.icID && (config.inputLength !== 0 || config.outputLength !== 0)){
- result = true;
- }
+ // only open sockets of ICs with configured input or output signals
+ let relevantICs = this.state.ics.filter(ic => {
+ let result = false;
+ this.state.configs.forEach(config => {
+ if(ic.id === config.icID && (config.inputLength !== 0 || config.outputLength !== 0)){
+ result = true;
+ }
+ })
+ return result;
})
- return result;
- })
-
+
if (relevantICs.length > 0) {
console.log("Starting to open IC websockets:", relevantICs);
AppDispatcher.dispatch({
diff --git a/src/widget/edit-widget/edit-widget-control-creator.js b/src/widget/edit-widget/edit-widget-control-creator.js
index a207762..8eb6583 100644
--- a/src/widget/edit-widget/edit-widget-control-creator.js
+++ b/src/widget/edit-widget/edit-widget-control-creator.js
@@ -74,7 +74,8 @@ export default function CreateControls(widgetType = null, widget = null, session
{ this.props.lineColors !== undefined && this.props.lineColors != null ? (
this.props.signals.map( (signal, idx) =>
-
diff --git a/src/widget/widgets/plot.js b/src/widget/widgets/plot.js
index 1479081..a9303ab 100644
--- a/src/widget/widgets/plot.js
+++ b/src/widget/widgets/plot.js
@@ -107,7 +107,10 @@ class WidgetPlot extends React.Component {
signalIDs={this.props.widget.signalIDs}
/>
-