mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-09 09:35:02 +09:00
fix performance
This commit is contained in:
parent
c7d24b1a2d
commit
ca348fbb51
1 changed files with 1 additions and 5 deletions
6
dist/workers/graph.js
vendored
6
dist/workers/graph.js
vendored
|
@ -790,11 +790,7 @@ const filterEdgesByDepth = (sourceIds, depth) => {
|
|||
let ret = [].concat(filtered);
|
||||
|
||||
if (nextIds.length && (depth > 1)) {
|
||||
const nextDepth = depth - 1;
|
||||
|
||||
filtered.forEach(() => {
|
||||
ret = ret.concat(filterEdgesByDepth(nextIds, nextDepth));
|
||||
});
|
||||
ret = ret.concat(filterEdgesByDepth(nextIds, depth - 1));
|
||||
};
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue