Skip to content

Commit

Permalink
Fix showConnections none
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismaltby committed Sep 13, 2024
1 parent b28d102 commit 76f193f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/world/Connections.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 76f193f

Please sign in to comment.