File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
frappe_better_attach_control/public/js/uploader Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ frappe.ui.FileUploader = class FileUploader extends frappe.ui.FileUploader {
4242 }
4343 _override_uploader ( opts ) {
4444 var up = this . uploader ;
45- if ( opts ) {
45+ if ( isPlainObject ( opts ) ) {
4646 up . restrictions = opts . restrictions ;
4747 up . restrictions . as_public = ! ! opts . restrictions . as_public ;
4848 }
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ frappe.ui.FileUploader = class FileUploader extends frappe.ui.FileUploader {
4141 }
4242 _override_uploader ( opts ) {
4343 var up = this . uploader ;
44- if ( opts ) {
44+ if ( isPlainObject ( opts ) ) {
4545 up . restrictions = opts . restrictions ;
4646 up . restrictions . as_public = ! ! opts . restrictions . as_public ;
4747 }
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ frappe.ui.FileUploader = class FileUploader extends frappe.ui.FileUploader {
4141 }
4242 _override_uploader ( opts ) {
4343 var up = this . uploader ;
44- if ( opts ) {
44+ if ( isPlainObject ( opts ) ) {
4545 up . restrictions = opts . restrictions ;
4646 up . restrictions . as_public = ! ! opts . restrictions . as_public ;
4747 }
You can’t perform that action at this time.
0 commit comments