From cf9470f65587a9659745412301fd23508ff1b165 Mon Sep 17 00:00:00 2001 From: newcat Date: Sat, 19 Oct 2024 02:02:36 +0200 Subject: [PATCH] fix build error --- packages/engine/src/topologicalSorting.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/engine/src/topologicalSorting.ts b/packages/engine/src/topologicalSorting.ts index b29c0d51..f04e9d31 100644 --- a/packages/engine/src/topologicalSorting.ts +++ b/packages/engine/src/topologicalSorting.ts @@ -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)!;