Skip to content

Commit

Permalink
chore: use initial state when reset state
Browse files Browse the repository at this point in the history
  • Loading branch information
sunkehappy committed Jun 25, 2021
1 parent 27243bc commit fcacd74
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/index.js
Expand Up @@ -824,12 +824,7 @@ function reducer(state, action) {
}
case 'reset':
return {
...state,
isFileDialogActive: false,
isDragActive: false,
draggedFiles: [],
acceptedFiles: [],
fileRejections: [],
...initialState
}
default:
return state
Expand Down

0 comments on commit fcacd74

Please sign in to comment.