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

use infrastructure component name in config list preferred over UUID

This commit is contained in:
Sonja Happ 2020-03-27 16:55:55 +01:00
parent d1dc3e92de
commit 6ff87ff092

View file

@ -269,7 +269,7 @@ class Scenario extends React.Component {
getICName(icID) {
for (let ic of this.state.ics) {
if (ic.id === icID) {
return _.get(ic, 'properties.name') || _.get(ic, 'rawProperties.name') || ic.uuid;
return ic.name || ic.uuid;
}
}
}
@ -283,7 +283,7 @@ class Scenario extends React.Component {
let newDashboard = data;
// add default grid value and scenarioID
newDashboard["grid"] = 15;
newDashboard["scenarioID"] = this.state.scenario.id
newDashboard["scenarioID"] = this.state.scenario.id;
if (data) {
AppDispatcher.dispatch({