Skip to content

Commit

Permalink
v2-Beta7 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kid1194 committed Jan 31, 2023
1 parent 304e940 commit 0bd8a5d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frappe_better_attach_control/public/js/uploader/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ frappe.ui.FileUploader = class FileUploader extends frappe.ui.FileUploader {
}
_override_uploader(opts) {
var up = this.uploader;
if (opts) {
if (isPlainObject(opts)) {
up.restrictions = opts.restrictions;
up.restrictions.as_public = !!opts.restrictions.as_public;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ frappe.ui.FileUploader = class FileUploader extends frappe.ui.FileUploader {
}
_override_uploader(opts) {
var up = this.uploader;
if (opts) {
if (isPlainObject(opts)) {
up.restrictions = opts.restrictions;
up.restrictions.as_public = !!opts.restrictions.as_public;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ frappe.ui.FileUploader = class FileUploader extends frappe.ui.FileUploader {
}
_override_uploader(opts) {
var up = this.uploader;
if (opts) {
if (isPlainObject(opts)) {
up.restrictions = opts.restrictions;
up.restrictions.as_public = !!opts.restrictions.as_public;
}
Expand Down

0 comments on commit 0bd8a5d

Please sign in to comment.