NodeGraph: Update no data message to show if no nodes (#44483)

* Display error if no service graph data is returned

* Remove error message and update node graph no data logic

* Check processed nodes instead of rendered nodes for no data message

* Remove console.log
pull/44675/head
Connor Lindsey 3 years ago committed by GitHub
parent 6e1615b42a
commit 4f44ff7ce8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      public/app/plugins/panel/nodeGraph/NodeGraph.tsx

@ -189,7 +189,7 @@ export function NodeGraph({ getLinks, dataFrames, nodeLimit }: Props) {
</div>
) : null}
{dataFrames.length ? (
{dataFrames.length && processed.nodes.length ? (
<svg
ref={panRef}
viewBox={`${-(width / 2)} ${-(height / 2)} ${width} ${height}`}

Loading…
Cancel
Save