Skip to content
Snippets Groups Projects
Commit e5302390 authored by Empress Sela's avatar Empress Sela
Browse files

Fix IBC bug

- Used pop instead of splice
parent d85945ea
No related branches found
No related tags found
No related merge requests found
......@@ -105,8 +105,8 @@ globalThis.ibc = (() => {
let anc = [];
while (pfx.length > 0) {
let p = pfx.pop(0);
pfx_s.pop(0);
let p = pfx.shift();
pfx_s.shift();
let ret = find_nc(p, a);
ret.nodecodes.forEach(nc => {
......@@ -115,8 +115,8 @@ globalThis.ibc = (() => {
return;
}
pfx.pop(i);
pfx_s.pop(i);
pfx.splice(i, 1);
pfx_s.splice(i, 1);
});
if (anc.findIndex(s => (s[0] == ret)) === -1) {
......@@ -190,8 +190,8 @@ globalThis.ibc = (() => {
if (i === -1) {
return;
}
paths_s.pop(i);
paths.pop(i);
paths_s.splice(i, 1);
paths.splice(i, 1);
});
});
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment