mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
fix creation of new dashboard: add missing parameters for grid and scenarioID
This commit is contained in:
parent
1fdef9b404
commit
6f3cbf272b
1 changed files with 4 additions and 0 deletions
|
@ -280,6 +280,10 @@ class Scenario extends React.Component {
|
|||
|
||||
closeNewDashboardModal(data) {
|
||||
this.setState({ newDashboardModal : false });
|
||||
let newDashboard = data;
|
||||
// add default grid value and scenarioID
|
||||
newDashboard["grid"] = 15;
|
||||
newDashboard["scenarioID"] = this.state.scenario.id
|
||||
|
||||
if (data) {
|
||||
AppDispatcher.dispatch({
|
||||
|
|
Loading…
Add table
Reference in a new issue