bug: thread loader missing some event ids
This commit is contained in:
parent
7680b16ab5
commit
61106c5d19
@ -14,8 +14,9 @@ export default function useThreadFeed(id: u256) {
|
|||||||
function addId(id: u256[]) {
|
function addId(id: u256[]) {
|
||||||
setTrackingEvent((s) => {
|
setTrackingEvent((s) => {
|
||||||
let orig = new Set(s);
|
let orig = new Set(s);
|
||||||
if (!id.some(a => orig.has(a))) {
|
let idsMissing = id.filter(a => !orig.has(a));
|
||||||
let tmp = new Set([...s, ...id]);
|
if (idsMissing.length > 0) {
|
||||||
|
let tmp = new Set([...s, ...idsMissing]);
|
||||||
return Array.from(tmp);
|
return Array.from(tmp);
|
||||||
} else {
|
} else {
|
||||||
return s;
|
return s;
|
||||||
|
Loading…
Reference in New Issue
Block a user