*Fix array override
This commit is contained in:
parent
14f3770bf7
commit
91896daff1
|
@ -52,7 +52,7 @@ export class RpcNetwork {
|
||||||
if (array.includes(item)) {
|
if (array.includes(item)) {
|
||||||
let queue = new Set(array);
|
let queue = new Set(array);
|
||||||
queue.delete(item);
|
queue.delete(item);
|
||||||
array = [...queue];
|
[].splice.apply(array, [0, array.length].concat([...queue]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue