diff --git a/src/components/PrometheusChart/component/hooks/useNodeSelect.jsx b/src/components/PrometheusChart/component/hooks/useNodeSelect.jsx index 4e4d8df9..068c557e 100644 --- a/src/components/PrometheusChart/component/hooks/useNodeSelect.jsx +++ b/src/components/PrometheusChart/component/hooks/useNodeSelect.jsx @@ -14,6 +14,9 @@ const useNodeSelect = (defaultNode) => { }; const Nodes = () => { + if (!nodes.length) { + return null; + } const key = getKey(); return (