Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
newcat committed Oct 19, 2024
1 parent 727f3ef commit cf9470f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/engine/src/topologicalSorting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export function sortTopologically(
sorted.push(n);
const nodesConnectedFromN = adjacency.get(n.id)!;
while (nodesConnectedFromN.size > 0) {
const mId: string = nodesConnectedFromN.values().next().value;
const mId: string = nodesConnectedFromN.values().next().value!;
nodesConnectedFromN.delete(mId);
if (Array.from(adjacency.values()).every((connectedNodes) => !connectedNodes.has(mId))) {
const m = nodes.find((node) => node.id === mId)!;
Expand Down

0 comments on commit cf9470f

Please sign in to comment.