Skip to content

Commit fcced9a

Browse files
[ENHANCEMENT] TracingGanttChart: show error message if panel query is a search query instead of a single trace (#537)
Signed-off-by: Andreas Gerstmayr <agerstmayr@redhat.com>
1 parent 288c6a9 commit fcced9a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tracingganttchart/src/TracingGanttChartPanel.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ export function TracingGanttChartPanel(props: TracingGanttChartPanelProps): Reac
3030
return <TextOverlay message="This panel does not support more than one query." />;
3131
}
3232

33+
if (queryResults[0]?.data.searchResult) {
34+
return (
35+
<TextOverlay message="This panel does not support displaying trace search results. Please enter a trace id in the query field instead." />
36+
);
37+
}
38+
3339
const trace = queryResults[0]?.data.trace;
3440
if (!trace) {
3541
return <NoDataOverlay resource="trace" />;

0 commit comments

Comments
 (0)