diff --git a/src/components/world/Connections.tsx b/src/components/world/Connections.tsx index 8e1b03a33..f93f5e824 100644 --- a/src/components/world/Connections.tsx +++ b/src/components/world/Connections.tsx @@ -281,6 +281,12 @@ const Connections = ({ ); const calculate = useCallback(() => { + if (!showConnections) { + isWorkQueued.current = false; + isWorking.current = false; + setConnections([]); + return; + } if (isWorking.current) { isWorkQueued.current = true; return;