Skip to content

Commit

Permalink
removed unused veriable in axiosFetchData.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammadshakkeerp committed Jul 18, 2024
1 parent 18211c2 commit 378a384
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/redux/reducers/axiosFetchData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@ const initialState: AppState = {
}

export const fetchProductData = createAsyncThunk("product/fetchData", async () => {
const [productsResponse, categoriesResponse] = await Promise.all(
const [, categoriesResponse] = await Promise.all(
[axios.get<{ products: Product[] }>('https://dummyjson.com/products'),
axios.get<string[]>('https://dummyjson.com/products')
])

const _products = productsResponse.data.products
const categories = categoriesResponse.data

const newCategoryMap: CategoryMap = {};
Expand Down

0 comments on commit 378a384

Please sign in to comment.