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
This commit is contained in:
Connor Lindsey 2022-01-31 11:30:49 -07:00 committed by GitHub
parent 6e1615b42a
commit 4f44ff7ce8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}`}