Remove TODO
parent
6b3306ed3c
commit
b7c420d57d
|
@ -184,8 +184,7 @@ export const putDashboardByID = dashboardID => async (dispatch, getState) => {
|
||||||
export const updateDashboardCell = (dashboard, cell) => async dispatch => {
|
export const updateDashboardCell = (dashboard, cell) => async dispatch => {
|
||||||
try {
|
try {
|
||||||
const {data} = await updateDashboardCellAJAX(cell)
|
const {data} = await updateDashboardCellAJAX(cell)
|
||||||
// TODO: remove yRanges when server persists the ranges
|
dispatch(syncDashboardCell(dashboard, data))
|
||||||
dispatch(syncDashboardCell(dashboard, {...data, yRanges: cell.yRanges}))
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
dispatch(errorThrown(error))
|
dispatch(errorThrown(error))
|
||||||
|
|
Loading…
Reference in New Issue