Skip to content

Commit 0bd8a5d

Browse files
committed
v2-Beta7 release
1 parent 304e940 commit 0bd8a5d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

frappe_better_attach_control/public/js/uploader/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

frappe_better_attach_control/public/js/uploader/v12/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

frappe_better_attach_control/public/js/uploader/v13/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)