From 4f44ff7ce8117abadbeaa571bd2b9c64220e0dd4 Mon Sep 17 00:00:00 2001 From: Connor Lindsey Date: Mon, 31 Jan 2022 11:30:49 -0700 Subject: [PATCH] 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 --- public/app/plugins/panel/nodeGraph/NodeGraph.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/plugins/panel/nodeGraph/NodeGraph.tsx b/public/app/plugins/panel/nodeGraph/NodeGraph.tsx index 7e011c9d322..d13591bccdb 100644 --- a/public/app/plugins/panel/nodeGraph/NodeGraph.tsx +++ b/public/app/plugins/panel/nodeGraph/NodeGraph.tsx @@ -189,7 +189,7 @@ export function NodeGraph({ getLinks, dataFrames, nodeLimit }: Props) { ) : null} - {dataFrames.length ? ( + {dataFrames.length && processed.nodes.length ? (