parent
e00b754fce
commit
ecfc217ce9
1 changed files with 6 additions and 0 deletions
|
@ -117,6 +117,12 @@ class LocalAPIEndpoint {
|
|||
? Zotero.Groups.getLibraryIDFromGroupID(parseInt(requestData.pathParams.groupID))
|
||||
: Zotero.Libraries.userLibraryID;
|
||||
|
||||
let library = Zotero.Libraries.get(requestData.libraryID);
|
||||
if (!library.getDataLoaded('item')) {
|
||||
Zotero.debug("Waiting for items to load for library " + library.libraryID);
|
||||
await library.waitForDataLoad('item');
|
||||
}
|
||||
|
||||
let response = await this.run(requestData);
|
||||
if (response.data) {
|
||||
let dataIsArray = Array.isArray(response.data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue