Set processIndices for each processor return
This commit is contained in:
		
					parent
					
						
							
								9ddd4dda3a
							
						
					
				
			
			
				commit
				
					
						30b6bf6da7
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -1663,7 +1663,6 @@ Zotero.Integration.Session.prototype._updateCitations = async function () { | ||||||
| 				[citations, fieldToCitationIdxMapping, citationToFieldIdxMapping] = | 				[citations, fieldToCitationIdxMapping, citationToFieldIdxMapping] = | ||||||
| 					this.getCiteprocLists() | 					this.getCiteprocLists() | ||||||
| 			} | 			} | ||||||
| 			this.processIndices[index] = true; |  | ||||||
| 		 | 		 | ||||||
| 			// Jump to next event loop step for UI updates
 | 			// Jump to next event loop step for UI updates
 | ||||||
| 			await Zotero.Promise.delay(); | 			await Zotero.Promise.delay(); | ||||||
|  | @ -1683,6 +1682,7 @@ Zotero.Integration.Session.prototype._updateCitations = async function () { | ||||||
| 			 | 			 | ||||||
| 			for (let citationInfo of newCitations) { | 			for (let citationInfo of newCitations) { | ||||||
| 				let idx = fieldToCitationIdxMapping[citationInfo[0]], text = citationInfo[1]; | 				let idx = fieldToCitationIdxMapping[citationInfo[0]], text = citationInfo[1]; | ||||||
|  | 				this.processIndices[idx] = true; | ||||||
| 				this.citationsByIndex[idx].text = text; | 				this.citationsByIndex[idx].text = text; | ||||||
| 			} | 			} | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Frank Bennett
				Frank Bennett