Skip to content

Commit e1ad7f0

Browse files
.
1 parent 71ce240 commit e1ad7f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roles/lib/files/FWO.Services/ModellingConnectionHandler.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,14 +1029,14 @@ private List<ModellingNetworkArea> GetAreasInDirection(List<ModellingNetworkArea
10291029
{
10301030
if (direction == Direction.Source)
10311031
{
1032-
if (ActConn.SourceAreas.FirstOrDefault(w => w.Content.Id == area.Id) == null && !SrcAreasToAdd.Contains(area))
1032+
if (ActConn.SourceAreas.Any(w => w.Content.Id == area.Id) || SrcAreasToAdd.Contains(area))
10331033
{
10341034
directionNetworkAreas.Add(area);
10351035
}
10361036
}
10371037
else if (direction == Direction.Destination)
10381038
{
1039-
if (ActConn.DestinationAreas.FirstOrDefault(w => w.Content.Id == area.Id) == null && !DstAreasToAdd.Contains(area))
1039+
if (ActConn.DestinationAreas.Any(w => w.Content.Id == area.Id) || DstAreasToAdd.Contains(area))
10401040
{
10411041
directionNetworkAreas.Add(area);
10421042
}

0 commit comments

Comments
 (0)