diff --git a/public/store/reducers/opensearch_reducer.ts b/public/store/reducers/opensearch_reducer.ts index 79da1fc7..8bc8a53f 100644 --- a/public/store/reducers/opensearch_reducer.ts +++ b/public/store/reducers/opensearch_reducer.ts @@ -29,11 +29,7 @@ export const fetchIndices = createAsyncThunk( const opensearchSlice = createSlice({ name: OPENSEARCH_PREFIX, initialState, - reducers: { - setIndices(state, action) { - state.indices = action.payload; - }, - }, + reducers: {}, extraReducers: (builder) => { builder .addCase(fetchIndices.pending, (state, action) => { @@ -55,4 +51,3 @@ const opensearchSlice = createSlice({ }); export const opensearchReducer = opensearchSlice.reducer; -export const { setIndices } = opensearchSlice.actions;