mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-05-22 06:46:38 +00:00
Quick fix
This commit is contained in:
parent
2a83fe353f
commit
b199f41598
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user