From bbb035a9dfb240e470b68e593deeb0bf3381381a Mon Sep 17 00:00:00 2001 From: Merlijn Vos Date: Fri, 10 Sep 2021 12:38:55 +0200 Subject: [PATCH] Fix `autoOpenFileEditor` for `@uppy/dashboard` (#3186) --- packages/@uppy/dashboard/src/index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/@uppy/dashboard/src/index.js b/packages/@uppy/dashboard/src/index.js index b161a56d4..e26708209 100644 --- a/packages/@uppy/dashboard/src/index.js +++ b/packages/@uppy/dashboard/src/index.js @@ -40,8 +40,6 @@ function defaultPickerIcon () { module.exports = class Dashboard extends UIPlugin { static VERSION = require('../package.json').version - #openFileEditorWhenFilesAdded - constructor (uppy, opts) { super(uppy, opts) this.id = this.opts.id || 'Dashboard' @@ -730,7 +728,7 @@ module.exports = class Dashboard extends UIPlugin { this.uppy.emit('restore-canceled') } - _openFileEditorWhenFilesAdded = (files) => { + #openFileEditorWhenFilesAdded = (files) => { const firstFile = files[0] if (this.canEditFile(firstFile)) { this.openFileEditor(firstFile)