Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Artur Paikin <artur@arturpaikin.com>
  • Loading branch information
mifi and arturi authored Nov 6, 2023
1 parent 002d5cb commit ab5b48a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/@uppy/core/src/Uppy.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ class Uppy {
}

/** @protected */
resetUploadState() {
clearUploadedFiles () {
this.setState({ ...getDefaultUploadState(), files: {} })
}

Expand Down
2 changes: 1 addition & 1 deletion packages/@uppy/dashboard/src/Dashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default class Dashboard extends UIPlugin {
hidePauseResumeButton: false,
hideProgressAfterFinish: false,
doneButtonHandler: () => {
this.uppy.resetUploadState()
this.uppy.clearUploadedFiles()
this.requestCloseModal()
},
note: null,
Expand Down

0 comments on commit ab5b48a

Please sign in to comment.