From f35100d49d7d270660533498dc0fd917037269e4 Mon Sep 17 00:00:00 2001 From: Joanne Wang Date: Mon, 28 Oct 2024 10:35:37 -0700 Subject: [PATCH] make dataSource default cluster for threat alerts card 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 () => {