mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-05-23 07:16:38 +00:00
Quick fix
This commit is contained in:
parent
2a83fe353f
commit
b199f41598
@ -91,7 +91,10 @@ class OrbitList extends List {
|
|||||||
|
|
||||||
get asJson() {
|
get asJson() {
|
||||||
let items = {};
|
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 {
|
return {
|
||||||
id: this.id,
|
id: this.id,
|
||||||
seq: this.seq,
|
seq: this.seq,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user