Don't show "Loading item data" when data is cached
This commit is contained in:
parent
e35575e6fd
commit
dd52206b37
1 changed files with 2 additions and 2 deletions
|
@ -4284,12 +4284,12 @@ Zotero.Item.prototype.toResponseJSON = Zotero.Promise.coroutine(function* (optio
|
|||
* Load in the field data from the database
|
||||
*/
|
||||
Zotero.Item.prototype.loadItemData = Zotero.Promise.coroutine(function* (reload) {
|
||||
Zotero.debug("Loading item data for item " + this.libraryKey);
|
||||
|
||||
if (this._loaded.itemData && !reload) {
|
||||
return;
|
||||
}
|
||||
|
||||
Zotero.debug("Loading item data for item " + this.libraryKey);
|
||||
|
||||
if (!this.id) {
|
||||
throw ('ItemID not set for object before attempting to load data');
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue