diff --git a/src/list/OrbitList.js b/src/list/OrbitList.js index 4a737a5..01a12f2 100644 --- a/src/list/OrbitList.js +++ b/src/list/OrbitList.js @@ -91,7 +91,10 @@ class OrbitList extends List { get asJson() { let items = {}; - this._currentBatch.forEach((f) => Object.defineProperty(items, f.compactId.toString(), { value: f.ipfsHash, enumerable: true })); + this._currentBatch.forEach((f) => { + if(!items[f.compactId.toString()]) + Object.defineProperty(items, f.compactId.toString(), { value: await(f.ipfsHash), enumerable: true }); + }); return { id: this.id, seq: this.seq,