Refactoring

This commit is contained in:
Scott E. Graves
2019-06-07 10:31:52 -05:00
parent d86f1c82a1
commit a326d7762f

View File

@@ -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,
} }