handleUpdatePosition matches handleRenameDashboard

pull/1198/head
Luke Morris 2017-04-05 17:33:55 -07:00
parent 2f636a9fc2
commit c6f91b77a0
1 changed files with 3 additions and 3 deletions

View File

@ -103,9 +103,9 @@ const DashboardPage = React.createClass({
},
handleUpdatePosition(cells) {
const dashboard = this.getActiveDashboard()
this.props.dashboardActions.updateDashboardCells(dashboard, cells)
this.props.dashboardActions.putDashboard(dashboard)
const newDashboard = {...this.getActiveDashboard(), cells}
this.props.dashboardActions.updateDashboard(newDashboard)
this.props.dashboardActions.putDashboard(newDashboard)
},
handleAddCell() {