mirror of
https://github.com/zotero/zotero.git
synced 2026-10-09 03:18:01 +00:00
Avoid args is undefined logged error in file sync tests
This commit is contained in:
parent
1f401f0897
commit
3a26ce3bb1
1 changed files with 4 additions and 0 deletions
|
|
@ -78,6 +78,10 @@ Zotero.Sync.Storage = new function () {
|
|||
var libraryID, key;
|
||||
[libraryID, key] = libraryKey.split("/");
|
||||
var item = Zotero.Items.getByLibraryAndKey(libraryID, key);
|
||||
// Item may not longer exist in tests
|
||||
if (Zotero.test && !item) {
|
||||
return;
|
||||
}
|
||||
// TODO: yield or switch to queue
|
||||
Zotero.Notifier.trigger('redraw', 'item', item.id, { column: "hasAttachment" });
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue