Fix delete

pull/10616/head
Andrew Watkins 2017-10-05 14:28:18 -07:00
parent 33039b90b7
commit cd2a46d439
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ const dashTimeV1 = (state = initialState, action) => {
case 'DELETE_DASHBOARD': {
const {dashboardID} = action.payload
const ranges = state.ranges.filter(d => d.id !== dashboardID)
const ranges = state.ranges.filter(r => r.dashboardID !== dashboardID)
return {...state, ranges}
}