From 48669ca25184f734db933b2e9671b0ad6e3af242 Mon Sep 17 00:00:00 2001 From: Joanne Wang Date: Mon, 28 Oct 2024 11:17:44 -0700 Subject: [PATCH] make dataSource default cluster for threat alerts card (#1200) Signed-off-by: Joanne Wang --- .../DataSourceThreatAlertsCard.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/public/components/DataSourceThreatAlertsCard/DataSourceThreatAlertsCard.tsx b/public/components/DataSourceThreatAlertsCard/DataSourceThreatAlertsCard.tsx index e55bb39a..5c672d61 100644 --- a/public/components/DataSourceThreatAlertsCard/DataSourceThreatAlertsCard.tsx +++ b/public/components/DataSourceThreatAlertsCard/DataSourceThreatAlertsCard.tsx @@ -55,10 +55,7 @@ export const DataSourceThreatAlertsCard: React.FC = ( }, [getDataSourceMenu]); const notifications = getNotifications(); const [loading, setLoading] = useState(false); - const [dataSource, setDataSource] = useState({ - label: 'Local cluster', - id: '', - }); + const [dataSource, setDataSource] = useState(); const [alerts, setAlerts] = useState([]); const getAlerts = async () => {