From 49a5d433c61c2854d3f591ffa74ccde348875b1c Mon Sep 17 00:00:00 2001 From: "13621160019@163.com" <13621160019@163.com> Date: Mon, 23 Aug 2021 14:16:37 +0800 Subject: [PATCH] fixed typeof issue of dropzone js in Admin UI --- admin/js/plugins/dropzone/dropzone.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/js/plugins/dropzone/dropzone.js b/admin/js/plugins/dropzone/dropzone.js index 27a69c98..b51cd8ce 100644 --- a/admin/js/plugins/dropzone/dropzone.js +++ b/admin/js/plugins/dropzone/dropzone.js @@ -913,7 +913,7 @@ function (_Emitter) { if (file.previewElement) { file.previewElement.classList.add("dz-error"); - if (typeof message !== "String" && message.error) { + if (typeof message !== "string" && message.error) { message = message.error; }