From 7088bcf61bdb748ccd902b6c8ae869340bb4b333 Mon Sep 17 00:00:00 2001 From: zeripath Date: Fri, 9 Apr 2021 03:32:30 +0100 Subject: [PATCH] Fix Dropzone following #15315 (#15353) * 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 * use destructured export Co-authored-by: silverwind Co-authored-by: 6543 <6543@obermui.de> --- web_src/js/features/dropzone.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_src/js/features/dropzone.js b/web_src/js/features/dropzone.js index 428f1d677a..6a4f7e17e4 100644 --- a/web_src/js/features/dropzone.js +++ b/web_src/js/features/dropzone.js @@ -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'), ]);