diff --git a/ui/src/dashboards/actions/index.js b/ui/src/dashboards/actions/index.js index ca9b706b1..967ec0fdf 100644 --- a/ui/src/dashboards/actions/index.js +++ b/ui/src/dashboards/actions/index.js @@ -122,14 +122,6 @@ export const templateVariableSelected = (dashboardID, templateID, values) => ({ }, }) -export const editTemplateVariableSuccess = (dashboardID, data) => ({ - type: 'EDIT_TEMPLATE_VARIABLE_SUCCESS', - payload: { - dashboardID, - data, - }, -}) - // Async Action Creators export const getDashboardsAsync = () => async dispatch => { diff --git a/ui/src/dashboards/reducers/ui.js b/ui/src/dashboards/reducers/ui.js index ffcf5d17b..3b599612b 100644 --- a/ui/src/dashboards/reducers/ui.js +++ b/ui/src/dashboards/reducers/ui.js @@ -211,20 +211,6 @@ export default function ui(state = initialState, action) { }) return {...state, dashboards: newDashboards} } - - case 'EDIT_TEMPLATE_VARIABLE_SUCCESS': { - const {dashboardID, data} = action.payload - const dashboards = state.dashboards.map( - d => - (d.id === dashboardID - ? { - ...d, - templates: data, - } - : d) - ) - return {...state, dashboards} - } } return state