🔧 Adding corrected AirDCPP integration

1. Search event listeners
2. Reducer refactoring
This commit is contained in:
2021-09-02 08:18:58 -07:00
parent c02b512e1c
commit 3fc22c74ef
5 changed files with 52 additions and 29 deletions

View File

@@ -20,9 +20,10 @@ const initialState = {
function airdcppReducer(state = initialState, action) {
switch (action.type) {
case AIRDCPP_SEARCH_RESULTS_RECEIVED:
console.log("Badan", action)
return {
...state,
searchResults: action.results,
searchResults: action.groupedResult.result,
isAirDCPPSearchInProgress: false,
};
case AIRDCPP_SEARCH_IN_PROGRESS: