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:
parent
d1dc3e92de
commit
6ff87ff092
1 changed files with 2 additions and 2 deletions
|
@ -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({
|
||||
|
|
Loading…
Add table
Reference in a new issue