Refactoring
This commit is contained in:
@@ -25,10 +25,9 @@ export const downloadReducer = createReducer({
|
|||||||
[SET_DOWNLOAD_BEGIN]: (state, action) => {
|
[SET_DOWNLOAD_BEGIN]: (state, action) => {
|
||||||
return {
|
return {
|
||||||
...state,
|
...state,
|
||||||
|
...defaultDownloadState,
|
||||||
DownloadActive: true,
|
DownloadActive: true,
|
||||||
DownloadName: action.payload.name,
|
DownloadName: action.payload.name,
|
||||||
DownloadProgress: 0.0,
|
|
||||||
DownloadResult: null,
|
|
||||||
DownloadType: action.payload.type,
|
DownloadType: action.payload.type,
|
||||||
DownloadURL: action.payload.url,
|
DownloadURL: action.payload.url,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user