Skip to content

Commit

Permalink
make data source default cluster for alerts card (#1146) (#1148)
Browse files Browse the repository at this point in the history
(cherry picked from commit ab65362)

Signed-off-by: Joanne Wang <[email protected]>
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>
  • Loading branch information
1 parent 2725e5d commit 02e0ac5
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ export const DataSourceAlertsCard: React.FC<DataSourceAlertsCardProps> = ({ get
return null;
}, [getDataSourceMenu]);
const [loading, setLoading] = useState(false);
const [dataSource, setDataSource] = useState<DataSourceOption>({
label: 'Local cluster',
id: '',
});
const [dataSource, setDataSource] = useState<DataSourceOption>();
const [alerts, setAlerts] = useState<any[]>([]);

useEffect(() => {
Expand Down

0 comments on commit 02e0ac5

Please sign in to comment.