diff --git a/openmetadata-ui/src/main/resources/ui/src/components/Database/Profiler/TestSummary/TestSummaryGraph.tsx b/openmetadata-ui/src/main/resources/ui/src/components/Database/Profiler/TestSummary/TestSummaryGraph.tsx index 0a1601b648bc..91ed8b9b31df 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/Database/Profiler/TestSummary/TestSummaryGraph.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/Database/Profiler/TestSummary/TestSummaryGraph.tsx @@ -135,6 +135,7 @@ function TestSummaryGraph({ dataKey: info.label, type: 'line', color: info.color, + inactive: !(activeKeys.length === 0 || activeKeys.includes(info.label)), })); legendPayload.push({ @@ -145,7 +146,7 @@ function TestSummaryGraph({ } as Payload); return legendPayload; - }, [chartData]); + }, [chartData?.information, activeKeys]); const handleLegendClick: LegendProps['onClick'] = (event) => { if (event.dataKey === 'Incident') { @@ -226,7 +227,7 @@ function TestSummaryGraph({ return (