+
-
);
@@ -48,13 +82,9 @@ function DiagramPanel({ appId, routeId, exchangeId }: DiagramPanelProps) {
const timeFrom = timeRange.start.toISOString();
const timeTo = timeRange.end.toISOString();
- // Fetch execution detail if an exchange is selected
const { data: detail } = useExecutionDetail(exchangeId ?? null);
-
- // Fetch diagram for topology-only view
const diagramQuery = useDiagramByRoute(appId, routeId);
- // Known route IDs for drill-down
const { data: catalog } = useRouteCatalog(timeFrom, timeTo);
const knownRouteIds = useMemo(() => {
const ids = new Set
();
@@ -68,7 +98,6 @@ function DiagramPanel({ appId, routeId, exchangeId }: DiagramPanelProps) {
return ids;
}, [catalog]);
- // If exchange selected: show header + ExecutionDiagram
if (exchangeId && detail) {
return (
<>
@@ -82,7 +111,6 @@ function DiagramPanel({ appId, routeId, exchangeId }: DiagramPanelProps) {
);
}
- // No exchange: show topology-only ProcessDiagram
if (diagramQuery.data) {
return (