mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-21 09:18:45 +00:00
Fix autoOpenFileEditor for @uppy/dashboard (#3186)
This commit is contained in:
parent
6e0ceeaba7
commit
bbb035a9df
1 changed files with 1 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue