fix build

This commit is contained in:
ajvpot
2025-09-10 03:52:26 +02:00
parent 93cfd969a8
commit cdd66725ec
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -100,7 +100,7 @@ const IndividualMarker = React.memo(function IndividualMarker({
}
};
// eslint-disable-next-line react-hooks/exhaustive-deps -- Intentionally omitting selectedNodeId, showNodeNames, isLoadingNeighbors to prevent marker recreation
}, [map, node.node_id, node.latitude, node.longitude, node.type]);
}, [map, node.node_id, node.latitude, node.longitude, node.type, target]);
// Update marker when visual properties change (but don't recreate marker)
useEffect(() => {
@@ -221,7 +221,7 @@ const ClusteredMarkersGroup = React.memo(function ClusteredMarkersGroup({
}
};
// eslint-disable-next-line react-hooks/exhaustive-deps -- Intentionally omitting selectedNodeId, showNodeNames, isLoadingNeighbors to prevent cluster recreation
}, [map, nodes]);
}, [map, nodes, target]);
// Update marker appearances when visual properties change
useEffect(() => {
+1 -1
View File
@@ -13,7 +13,7 @@ interface MapWithChatProps {
nodePositions?: NodePosition[];
}
const MapView = dynamic<MapWithChatProps>(
const MapView = dynamic(
() => import("./MapView"),
{ ssr: false }
);