File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
roles/lib/files/FWO.Services Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments