Mock persistence of ranges

pull/10616/head
Andrew Watkins 2017-07-11 11:53:08 -07:00
parent edebfa2cbf
commit 549ad92d9c
1 changed files with 2 additions and 1 deletions

View File

@ -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))