Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed May 14, 2024
1 parent 228860c commit 431c1ee
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions panel/models/file_dropper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class FileDropperView extends InputWidgetView {
acceptedFileTypes: this.model.accepted_filetypes,
allowMultiple: this.model.multiple,
disabled: this.model.disabled,
maxFiles: this.model.max_files,
maxFiles: this.model.max_files,
maxFileSize: this.model.max_file_size,
maxTotalFileSize: this.model.max_total_file_size,
stylePanelLayout: this.model.layout,
Expand Down Expand Up @@ -108,10 +108,9 @@ export class FileDropperView extends InputWidgetView {
},
fetch: null,
revert: (id: string, load: () => void): void => {
console.log(id)
this.model.trigger_event(new DeleteEvent({name: id}))
load()
}
this.model.trigger_event(new DeleteEvent({name: id}))
load()
},
},
stylePanelLayout: this.model.layout,
})
Expand Down Expand Up @@ -140,13 +139,13 @@ export class FileDropperView extends InputWidgetView {
data: await file.slice(start, end).arrayBuffer(),
name: (file as any)._relativePath || file.name,
total_chunks: chunks,
type: file.type,
type: file.type,
}))
progress(true, end, file.size)
}
load(file.name)
resolve(file.name)
}).catch(() => error('Upload failed.'))
}).catch(() => error("Upload failed."))

return {abort: () => {
abort_flag = true
Expand Down

0 comments on commit 431c1ee

Please sign in to comment.