Skip to content

Commit 14d8444

Browse files
committed
fix(search): remove incorrect PayloadAction type annotation
1 parent b7ae9dd commit 14d8444

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/store/searchSlice.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import type { PayloadAction } from '@reduxjs/toolkit'
21
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit'
32

43
import type { AppDispatch, RootState } from '@app/store'
@@ -90,7 +89,7 @@ const searchSlice = createSlice({
9089
state.error = null
9190
state.activeQuery = action.meta.arg.query
9291
})
93-
.addCase(getSearch.fulfilled, (state, action: PayloadAction<SearchState['result']>) => {
92+
.addCase(getSearch.fulfilled, (state, action) => {
9493
if (state.activeQuery !== action.meta.arg.query) return
9594
state.isLoading = false
9695
state.result = action.payload

0 commit comments

Comments
 (0)