Fix delete
parent
33039b90b7
commit
cd2a46d439
|
@ -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}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue