diff --git a/ui/src/dashboards/actions/index.js b/ui/src/dashboards/actions/index.js index 1ee23908f2..917a93da72 100644 --- a/ui/src/dashboards/actions/index.js +++ b/ui/src/dashboards/actions/index.js @@ -178,7 +178,8 @@ export const putDashboardByID = dashboardID => async (dispatch, getState) => { export const updateDashboardCell = (dashboard, cell) => async dispatch => { try { const {data} = await updateDashboardCellAJAX(cell) - dispatch(syncDashboardCell(dashboard, data)) + // TODO: remove yRanges when server persists the ranges + dispatch(syncDashboardCell(dashboard, {...data, yRanges: cell.yRanges})) } catch (error) { console.error(error) dispatch(errorThrown(error))