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

* 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

(cherry picked from commit 4f44ff7ce8)

Co-authored-by: Connor Lindsey <cblindsey3@gmail.com>
This commit is contained in:
Grot (@grafanabot)
2022-01-31 19:45:40 +01:00
committed by GitHub
co-authored by Connor Lindsey
parent 8343e79f3e
commit 5af06db660
@@ -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}`}