🔧 Fixed bugs with tab changes and state
This commit is contained in:
@@ -5,6 +5,7 @@ import {
|
||||
AIRDCPP_RESULT_DOWNLOAD_INITIATED,
|
||||
AIRDCPP_DOWNLOAD_PROGRESS_TICK,
|
||||
} from "../constants/action-types";
|
||||
import { LOCATION_CHANGE } from "connected-react-router";
|
||||
|
||||
const initialState = {
|
||||
isAirDCPPSearchInProgress: false,
|
||||
@@ -49,6 +50,10 @@ function airdcppReducer(state = initialState, action) {
|
||||
...state,
|
||||
downloadProgressData: action.downloadProgressData,
|
||||
};
|
||||
case LOCATION_CHANGE:
|
||||
return {
|
||||
initialState,
|
||||
};
|
||||
|
||||
default:
|
||||
return state;
|
||||
|
||||
Reference in New Issue
Block a user