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

only request VILLASnode status if not managed externally

This commit is contained in:
Sonja Happ 2021-01-28 14:28:41 +01:00
parent 5e30e17d89
commit 747f47b2af

View file

@ -115,8 +115,8 @@ class InfrastructureComponents extends Component {
// get status of VILLASnode and VILLASrelay ICs
this.state.ics.forEach(ic => {
if ((ic.type === "villas-node" || ic.type === "villas-relay")
&& ic.apiurl !== '' && ic.apiurl !== undefined && ic.apiurl !== null) {
if ((ic.type === "villas-node" || ic.type === "villas-relay" )
&& ic.apiurl !== '' && ic.apiurl !== undefined && ic.apiurl !== null && !ic.managedexternally) {
let splitWebsocketURL = ic.websocketurl.split("/");
AppDispatcher.dispatch({
type: 'ic-status/get-status',