Skip to content

Commit e268fc9

Browse files
committed
fix(#66): Show single node graphs.
Previously was showing empty for a graph with a single node and no edges.
1 parent 4d8c9e7 commit e268fc9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

web/src/components/Korrel8rPanel.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,12 +216,12 @@ const Topology: React.FC<TopologyProps> = ({ result, t, setQuery }) => {
216216
return <Loading />;
217217
}
218218

219-
if (result.graph && result.graph.nodes && result.graph.edges) {
219+
if (result.graph && result.graph.nodes) {
220220
// Non-empty graph
221221
return (
222222
<Korrel8rTopology
223-
queryNodes={result.graph.nodes}
224-
queryEdges={result.graph.edges}
223+
queryNodes={result.graph.nodes || []}
224+
queryEdges={result.graph.edges || []}
225225
loggingAvailable={loggingAvailable}
226226
netobserveAvailable={netobserveAvailable}
227227
setQuery={setQuery}

0 commit comments

Comments
 (0)