Skip to content

Commit 4b0bec0

Browse files
make data source default cluster for alerts card (#1146) (#1147)
(cherry picked from commit ab65362) Signed-off-by: Joanne Wang <jowg@amazon.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent d204033 commit 4b0bec0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

public/components/DataSourceAlertsCard/DataSourceAlertsCard.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@ export const DataSourceAlertsCard: React.FC<DataSourceAlertsCardProps> = ({ get
2626
return null;
2727
}, [getDataSourceMenu]);
2828
const [loading, setLoading] = useState(false);
29-
const [dataSource, setDataSource] = useState<DataSourceOption>({
30-
label: 'Local cluster',
31-
id: '',
32-
});
29+
const [dataSource, setDataSource] = useState<DataSourceOption>();
3330
const [alerts, setAlerts] = useState<any[]>([]);
3431

3532
useEffect(() => {

0 commit comments

Comments
 (0)