Skip to content

Commit 8f3cf10

Browse files
committed
fixed default to first segment for segment detail if overlapping segments
1 parent 24c165a commit 8f3cf10

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

cesnet_service_path_plugin/api/views/segment.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ def get_serializer_class(self):
1818
if self.action == "retrieve":
1919
pathdata = self.request.query_params.get("pathdata", "false").lower() == "true"
2020
if pathdata:
21-
print("Using SegmentDetailSerializer with path data for retrieve action")
2221
return SegmentDetailSerializer
2322

2423
return SegmentSerializer

cesnet_service_path_plugin/templates/cesnet_service_path_plugin/segments_map.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ <h6>${segment.name}</h6>
297297
} else if (overlappingSegments.length > 1) {
298298
// Multiple segments - show selection popup
299299
showOverlappingSegmentsPopup(overlappingSegments, clickPoint);
300+
showSegmentInfo(overlappingSegments[0].segment);
300301
}
301302
}
302303

0 commit comments

Comments
 (0)