Do not modify saveOptions argument since it may be used again
If we add the notifier queue, another save function will use that queue but not necessarily know that it needs to commit. Instead, we only use the notifier queue for this function.
This commit is contained in:
parent
98a75931b0
commit
4db61b8dc7
1 changed files with 2 additions and 2 deletions
|
@ -562,8 +562,8 @@ Zotero.Attachments = new function(){
|
|||
attachmentItem.attachmentPath = 'storage:' + options.filename;
|
||||
await attachmentItem.saveTx(
|
||||
Object.assign(
|
||||
options.saveOptions || {},
|
||||
{ notifierQueue }
|
||||
{ notifierQueue },
|
||||
options.saveOptions || {}
|
||||
)
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue