Skip to content

Commit

Permalink
update connection
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnaLysiuk committed Feb 16, 2024
1 parent 8b43e9c commit 02bc2d0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/editor-worker/src/tsAlgo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ export const sortNodesTs = ({
});
const connections: NumberConnection[] = [];
const idempotentInsert = (n: ParserField, tname: string) => {
const relatedNode = nodes.find((n) => n.name === tname);
const relatedNode = nodes.find(
(n) =>
n.name === tname && !Object.keys(TypeExtension).includes(n.data.type)
);
const interfaces = n.interfaces.map((interfaceName) =>
nodes.find((n) => n.name === interfaceName)
);
Expand Down Expand Up @@ -205,8 +208,8 @@ export const sortNodesTs = ({
removedAdded > 1
? 1
: removedAdded === 1
? 1 / numberNodes.length
: modifyAlpha;
? 1 / numberNodes.length
: modifyAlpha;

const retAlpha = a;

Expand Down

0 comments on commit 02bc2d0

Please sign in to comment.