mirror of
https://github.com/zotero/zotero.git
synced 2026-09-17 23:51:18 +00:00
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
Reference in a new issue