diff --git a/CHANGELOG.md b/CHANGELOG.md index fe5557ed9c..4cf4c40aac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -46,6 +46,7 @@ 1. [#1187](https://github.com/influxdata/chronograf/pull/1187): Replace Kill Query confirmation modal with ConfirmButtons 1. [#1185](https://github.com/influxdata/chronograf/pull/1185): Alphabetically sort Admin Database Page 1. [#1199](https://github.com/influxdata/chronograf/pull/1199): Move Rename Cell functionality to ContextMenu dropdown + 1. [#1222](https://github.com/influxdata/chronograf/pull/1222): Isolate cell repositioning to just those affected by adding a new cell ## v1.2.0-beta7 [2017-03-28] ### Bug Fixes diff --git a/chronograf.go b/chronograf.go index 33ab74f204..ecc1ea40c0 100644 --- a/chronograf.go +++ b/chronograf.go @@ -380,7 +380,7 @@ type Dashboard struct { // DashboardCell holds visual and query information for a cell type DashboardCell struct { - ID string `json:"-"` + ID string `json:"i"` X int32 `json:"x"` Y int32 `json:"y"` W int32 `json:"w"` diff --git a/ui/src/dashboards/components/Dashboard.js b/ui/src/dashboards/components/Dashboard.js index fe9640616a..0a06ea8330 100644 --- a/ui/src/dashboards/components/Dashboard.js +++ b/ui/src/dashboards/components/Dashboard.js @@ -31,9 +31,8 @@ const Dashboard = ({ } Dashboard.renderDashboard = (dashboard, autoRefresh, timeRange, source, onPositionChange, onEditCell, onRenameCell, onUpdateCell, onDeleteCell, onSummonOverlayTechnologies) => { - const cells = dashboard.cells.map((cell, i) => { - i = `${i}` - const dashboardCell = {...cell, i} + const cells = dashboard.cells.map((cell) => { + const dashboardCell = {...cell} dashboardCell.queries = dashboardCell.queries.map(({label, query, queryConfig, db}) => ({ label,