default can't be true

after set `opts.is_private` false, is private still true.
This commit is contained in:
gshmu 2017-09-06 13:59:19 +08:00 committed by GitHub
parent 43f4485c54
commit aa6f9b1b24

View file

@ -53,7 +53,7 @@ frappe.upload = {
$uploaded_files_wrapper.removeClass('hidden').empty();
file_array = file_array.map(
file => Object.assign(file, {is_private: opts.is_private || 1})
file => Object.assign(file, {is_private: opts.is_private || 0})
)
$upload.data('attached_files', file_array);