Skip to content

Commit ef291d9

Browse files
Merge pull request #68 from alanconway/always-show-start
fix(#66): Show single node graphs.
2 parents 4d8c9e7 + e268fc9 commit ef291d9

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)