From 76f193fc027e108cbe4aaf87b55cd6a48ef7b5d8 Mon Sep 17 00:00:00 2001 From: Chris Maltby Date: Fri, 13 Sep 2024 12:53:17 +0100 Subject: [PATCH] Fix showConnections none --- src/components/world/Connections.tsx | 6 ++++++ 1 file changed, 6 insertions(+) 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;