Skip to content

Commit

Permalink
Remove unnecessary setIndices()
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Ohlsen <[email protected]>
  • Loading branch information
ohltyler committed Sep 22, 2023
1 parent bce47a8 commit 61c04be
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions public/store/reducers/opensearch_reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -55,4 +51,3 @@ const opensearchSlice = createSlice({
});

export const opensearchReducer = opensearchSlice.reducer;
export const { setIndices } = opensearchSlice.actions;

0 comments on commit 61c04be

Please sign in to comment.