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
ca348fbb51
commit
74a415a122
1 changed files with 1 additions and 3 deletions
4
dist/workers/graph.js
vendored
4
dist/workers/graph.js
vendored
|
@ -783,9 +783,7 @@ const filterEdgesByDepth = (sourceIds, depth) => {
|
|||
};
|
||||
|
||||
const filtered = edges.filter(d => sourceIds.includes(d.source) || sourceIds.includes(d.target));
|
||||
const srcIds = filtered.map(d => d.source);
|
||||
const dstIds = filtered.map(d => d.target);
|
||||
const nextIds = srcIds.concat(dstIds);
|
||||
const nextIds = [].concat(filtered.map(d => d.source)).concat(filtered.map(d => d.target));
|
||||
|
||||
let ret = [].concat(filtered);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue