Tracing back, this is because Wikidata.reconcile exits here, without returning anything.
The purpose of the if statement is to abort reconciliation if the item we're dealing with already has a QID, and we won't overwrite it. But when working on multiple items at once we still want to continue with all the other items.
I found this issue while working on #137.
To reproduce:
I get
TypeError: qidMap is undefined
hereTracing back, this is because
Wikidata.reconcile
exits here, without returning anything.The purpose of the if statement is to abort reconciliation if the item we're dealing with already has a QID, and we won't overwrite it. But when working on multiple items at once we still want to continue with all the other items.