Skip to content

Commit

Permalink
Fix Dropzone following #15315 (#15353)
Browse files Browse the repository at this point in the history
* Fix Dropzone following #15315

#15315 appears to have caused a change in the way Dropzone is imported - and it
now produces a module rather than the constructor.

This PR rather hackily just adds another Dropzone call to the result.

Signed-off-by: Andrew Thornton <art27@cantab.net>

* use destructured export

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: 6543 <6543@obermui.de>
  • Loading branch information
3 people authored Apr 9, 2021
1 parent 147826a commit 7088bcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web_src/js/features/dropzone.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default async function createDropzone(el, opts) {
const [{default: Dropzone}] = await Promise.all([
const [{Dropzone}] = await Promise.all([
import(/* webpackChunkName: "dropzone" */'dropzone'),
import(/* webpackChunkName: "dropzone" */'dropzone/dist/dropzone.css'),
]);
Expand Down

0 comments on commit 7088bcf

Please sign in to comment.